MichaelFiber
37f60e75e7
Remove unneeded #if ( #3301 )
...
Co-authored-by: MichaelFiber <michael@cubeofb.org >
2023-09-09 09:47:07 +02:00
Ray
b68d0850b1
Some code restructuring for input functions, consistency review
2023-09-08 20:01:52 +02:00
Ray
10e4aa32f8
Update rtext.c
2023-09-08 20:01:19 +02:00
Ray
30a9a24db9
Review to avoid UBSAN complaining #1891
2023-09-07 18:00:10 +02:00
MichaelFiber
18e9784c6d
Remove PLATFORM_RPI ( #3232 )
...
* Remove PLATFORM_RPI
* remove build artifacts
---------
Co-authored-by: MichaelFiber <michael@cubeofb.org >
Co-authored-by: Ray <raysan5@gmail.com >
2023-09-07 17:42:28 +02:00
SuperUserNameMan
8cf76ec113
Update Makefile : clean raygui.c & physac.c ( #3296 )
2023-09-07 17:35:02 +02:00
Ray
b0c6972e5c
Update rcore.c
2023-09-06 23:33:29 +02:00
Ray
d7debba222
Mouse offset and scaling must be considered also on web!
2023-09-06 23:16:31 +02:00
Ray
d55527953a
Merge branch 'master' of https://github.com/raysan5/raylib
2023-09-05 20:04:30 +02:00
Ray
9cce5a93ff
Fix #3293
2023-09-05 20:04:21 +02:00
Ryan Roden-Corrent
a316f9e7fc
Disable UBSAN in zig builds. ( #3292 )
...
Zig debug builds automatically enable ubsan.
As the fix for #1891 had to be reverted, debug builds using zig will crash like so:
```
Illegal instruction at address 0x3237d2
raylib/src/rlgl.h:3690:91: 0x3237d2 in rlDrawVertexArrayElements (/home/rcorre/src/raylib-zig-template/raylib/src/rcore.c)
glDrawElements(GL_TRIANGLES, count, GL_UNSIGNED_SHORT, (const unsigned short *)buffer + offset);
```
This disables UBSAN when using zig to build raylib.
2023-09-05 11:02:25 +02:00
Ray
c104a97590
Update config.h
2023-09-04 18:51:44 +02:00
Ray
bdda1efd44
Fix #3247
2023-09-04 18:43:25 +02:00
Ray
8a82e17a79
Update rtextures.c
2023-09-04 18:43:03 +02:00
Ray
67a693fc5b
REVIEWED: LoadImageSvg()
2023-09-02 19:20:56 +02:00
Ray
d6f3891009
REVIEWED: LoadImageSvg()
2023-09-02 13:16:44 +02:00
bXi
c03ab03627
Added rudimentary SVG support. ( #2738 )
...
* Added rudimentary SVG support. Added 2 functions ImageLoadSvg and ImageLoadSvgWithSize.
* Added an example on how to use ImageLoadSvgWithSize and adjusted Makefiles accordingly.
* Added actual correct example file.
* Reviewed the code to keep the raylib coding conventions in mind.
Moved the LoadImageSvg() code into LoadImage() guarded by SUPPORT_FILEFORMAT_SVG.
Renamed LoadImageSvgWithSize() to LoadImageSvg().
Added a LoadImageSvgFromString() function to parse the loaded SVG into an actual image. This does the bulk of the work.
* Fixed typo.
---------
Co-authored-by: Ray <raysan5@gmail.com >
2023-09-02 13:00:18 +02:00
Ray
75e5cd86d7
Use internal default allocators, instead of user-exposed ones
2023-09-02 12:58:47 +02:00
Ray
6e18d96e7a
Some tweaks
2023-09-02 12:54:36 +02:00
Ray
0f447f1fb6
REVIEWED: Data size type consistency between functions #3168
2023-09-02 12:05:34 +02:00
Johannes Barthelmes
0f39051562
Fix uninitialized thread-locals in stbi #3282 ( #3283 )
2023-09-02 11:41:33 +02:00
Ray
ec6d3bb688
RENAMED: LoadFont*() parameter names for consistency and coherence
2023-09-01 23:23:01 +02:00
Ray
8157d4283e
REVIEWED: GetFileLength()
, added comment #3262
2023-08-29 19:26:15 +02:00
Ray
150663f78a
Use type name instead of valid specifier
...
long long --> long long int
2023-08-29 19:25:44 +02:00
Ethan Conneely
fc0d132566
Remove e from secondes ( #3270 )
2023-08-28 22:49:45 +02:00
Ray
9646497216
Formating review
2023-08-27 00:30:56 +02:00
Branimir Ričko
b27e98a428
Fix bug where default shaders was not linking. ( #3261 )
2023-08-26 18:55:57 +02:00
Nickolas McDonald
9c9fba6a6c
[Feature] IsKey... safety checks and more ( #3256 )
...
* [Feature] Add GetKeyRepeat
* Update rcore.c
* Simpler design, only one repeat per frame
* Update config.h
* Update rcore.c
* Add KEYBOARD_KEYS_MASK
* Update config.h
* reversions
* Update rcore.c
* Update rcore.c
* change docs
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update raylib.h
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
2023-08-26 14:48:28 +02:00
Ethan Simpson
828d273698
Add Vector3 Projecting and Rejection to Raymath ( #3263 )
...
* Update raymath.h
* formatting
2023-08-26 14:44:52 +02:00
Jeffery Myers
21f5482e0d
[Image] Validate that ImageDrawRectangleRec is drawing entirely inside the image ( #3264 )
...
* Add a function to clone a sound and share data with another sound.
* rename items based on feedback
* PR Feedback, use custom unload for sound alias, not variant of normal sound unloading
* sound_multi example
* Validate that image rect drawing is inside the image so we don't overflow a buffer
* remove files that should not have been added.
* remove changes that should not have been
* revert
* adsfasdfsdfsdf
2023-08-26 14:43:14 +02:00
ubkp
4fa66f2635
Fix SetClipboardText for web ( #3257 )
2023-08-26 14:40:30 +02:00
vitopigno
5ed83dfa29
Update rcore.c ( #3255 )
2023-08-21 00:36:00 +02:00
Ray
dfd0436428
Reviewed IsKeyPressedRepeat()
#3248
2023-08-21 00:34:35 +02:00
actondev (Christos)
b3f82a148a
Add IsKeyPressedRepeat
(desktop only) ( #3245 )
...
Since the key pressed are handle by comparing current vs previous
state (ie frame), a special way is needed to handle key repeats.
2023-08-20 23:53:20 +02:00
Ray
83628933f0
Merge branch 'master' of https://github.com/raysan5/raylib
2023-08-20 21:36:50 +02:00
Ray
8189bddefb
tweaks
2023-08-20 21:36:36 +02:00
actondev (Christos)
820343e7ac
add build.zig options for individual modules ( #3254 )
2023-08-20 21:27:39 +02:00
Ray
5a33f19964
Revert "Fix #3246 "
...
This reverts commit e4dcbd5180
.
2023-08-19 20:09:43 +02:00
Ray
e4dcbd5180
Fix #3246
2023-08-17 15:05:52 +02:00
ashn
a86c93ebc0
Ignore unused return value of GetCodepointNext in GetCodepointCount ( #3241 )
...
* Ignore unused return value of GetCodepointNext in GetCodepointCount
Removes the last warning from non-external libraries when compiling with
the default build configuration on x64 Linux.
* Remove unnecessary void cast in GetCodepointCount
2023-08-15 00:09:27 +02:00
Ray
bf705a63de
REVIEWED: DrawLineCatmullRom()
2023-08-12 19:31:29 +02:00
Ray
d873d0f173
ISSUE: DrawLineCatmullRom()
, needs review
2023-08-12 18:45:59 +02:00
Ray
9161c55d59
REVIEWED: Code formatting
2023-08-12 18:40:18 +02:00
Ray
fc88518067
ADDED: Spline drawing functions ->
...
- `DrawLineBSpline()`
- `DrawLineCatmullRom()`
2023-08-12 14:00:50 +02:00
ubkp
c25b52b1b3
Fix rcamera.h issues ( #3240 )
2023-08-11 10:19:50 +02:00
Ray
93f59a6f59
Review tabs and trail-spaces
2023-08-10 22:47:17 +02:00
Ray
f1c31bee27
Fix #3177 #3109
2023-08-10 22:45:25 +02:00
RadsammyT
0959f6ebf6
fix typos in rmodels, rshapes, rtext modules ( #3236 )
2023-08-10 00:21:14 +02:00
ashn
90f1749965
Ignore unused function warnings from external headers when compiling with GCC and Clang ( #3235 )
2023-08-09 19:17:12 +02:00
Ray
42cfabc670
REVIEWED: Old pragma formating
2023-08-09 10:00:26 +02:00