Commit graph

6,649 commits

Author SHA1 Message Date
Ray
a0922a2a92 Fix #3247 2023-09-16 22:00:04 +01:00
Ray
b29284eb37 Update rtextures.c 2023-09-16 22:00:04 +01:00
Asdqwe
100b303685 Fix examples/textures/textures_image_rotate.c help instructions (#3286) 2023-09-16 22:00:04 +01:00
Asdqwe
e330f7d17d Fix examples/textures/textures_fog_of_war.c help instructions (#3285) 2023-09-16 22:00:04 +01:00
Asdqwe
fda2d0f506 Add SUPPORT_FILEFORMAT_SVG to cmake (#3284) 2023-09-16 22:00:04 +01:00
Ray
0a5c476b0a REVIEWED: LoadImageSvg() 2023-09-16 22:00:04 +01:00
Ray
7016f32d4e REVIEWED: LoadImageSvg() 2023-09-16 22:00:04 +01:00
bXi
6527f61d02 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-16 22:00:04 +01:00
Ray
d79ec5c431 Use internal default allocators, instead of user-exposed ones 2023-09-16 22:00:04 +01:00
Ray
b0986cbabb Some tweaks 2023-09-16 22:00:04 +01:00
Ray
98a02e13ea REVIEWED: Data size type consistency between functions #3168 2023-09-16 22:00:04 +01:00
Ray
650fbab341 REVIEWED: Added SetTextLineSpacing() to multiline examples 2023-09-16 22:00:04 +01:00
Johannes Barthelmes
fc0c51d0c7 Fix uninitialized thread-locals in stbi #3282 (#3283) 2023-09-16 22:00:04 +01:00
Ray
bc39770f52 RENAMED: LoadFont*() parameter names for consistency and coherence 2023-09-16 22:00:04 +01:00
Asdqwe
5a6fbcf124 Fix examples/shapes/shapes_collision_area.c help instructions (#3279) 2023-09-16 22:00:04 +01:00
Asdqwe
f26cb1ff71 Fix examples/shaders/shaders_texture_outline.c help instructions (#3278) 2023-09-16 22:00:04 +01:00
Asdqwe
3b84ec7d93 Fix examples/others/easings_testbed.c help instructions and small tweak (#3277) 2023-09-16 22:00:04 +01:00
Asdqwe
f54a12d8c0 Add examples/shaders/shaders_lightmap.c to Makefiles (#3276) 2023-09-16 22:00:04 +01:00
Asdqwe
7cc7ab032a Remove a duplicated screenshot and add missing one (#3275) 2023-09-16 22:00:04 +01:00
Asdqwe
5c51b0b109 Update examples/models/models_loading_gltf.png;m3d.png screenshots (#3273) 2023-09-16 22:00:04 +01:00
Ray
c197cac34c REVIEWED: GetFileLength(), added comment #3262 2023-09-16 22:00:04 +01:00
Ray
daeb2cceac Use type name instead of valid specifier
long long --> long long int
2023-09-16 22:00:04 +01:00
Asdqwe
7fd3a02e88 Fix example/audio/audio_module_player.c help instructions and small bug (#3272)
* Fix example/audio/audio_module_player.c help instructions and small bug

* Update example/audio/audio_module_player.png screenshot
2023-09-16 22:00:04 +01:00
Ethan Conneely
c0038158f5 Remove e from secondes (#3270) 2023-09-16 22:00:04 +01:00
Asdqwe
10408524f0 Fix example/models/models_loading_m3d.c controls (#3269) 2023-09-16 22:00:04 +01:00
Asdqwe
7ed0fdb6e9 Fix example/models/models_loading_gltf.c controls (#3268) 2023-09-16 22:00:04 +01:00
iacore
fb0184a135 Fix CMake extraneous -lglfw (#3266)
Closes #3265.

The problem: LIBS_PRIVATE is a list of library names (used by pkg-config), but the shared library of the same name doesn't always exist.
2023-09-16 22:00:04 +01:00
Asdqwe
2931ba97b9 Add missing cmake options (#3267) 2023-09-16 22:00:04 +01:00
Ray
bfd9c4ef3c Formating review 2023-09-16 22:00:04 +01:00
Branimir Ričko
1814fd660d Fix bug where default shaders was not linking. (#3261) 2023-09-16 22:00:04 +01:00
Nickolas McDonald
22707987eb [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-09-16 22:00:04 +01:00
Ethan Simpson
8744f45a1d Add Vector3 Projecting and Rejection to Raymath (#3263)
* Update raymath.h

* formatting
2023-09-16 22:00:04 +01:00
Jeffery Myers
81ec5f0a21 [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-09-16 22:00:04 +01:00
ubkp
9760208993 Fix SetClipboardText for web (#3257) 2023-09-16 22:00:03 +01:00
Asdqwe
87c9ed4109 Match CMakeOptions.txt options default values (#3258) 2023-09-16 22:00:03 +01:00
vitopigno
acc4ecb48a Update rcore.c (#3255) 2023-09-16 22:00:03 +01:00
Ray
7190face1b Reviewed IsKeyPressedRepeat() #3248 2023-09-16 22:00:03 +01:00
actondev (Christos)
952ebb501a 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-09-16 22:00:03 +01:00
actondev (Christos)
62c20dfba6 add build.zig options for individual modules (#3254) 2023-09-16 22:00:03 +01:00
Ray
934cd6fa4d tweaks 2023-09-16 22:00:03 +01:00
ubkp
d3ebf8c09b Fix text_unicode.c example crashing (#3250)
* Fix text_unicode.c example crashing

* Adjust the text_unicode.c example crashing fix
2023-09-16 22:00:03 +01:00
Ray
90afcda9dc Revert "Fix #3246"
This reverts commit e4dcbd5180.
2023-09-16 22:00:03 +01:00
Ray
7e2c474c50 Fix #3246 2023-09-16 22:00:03 +01:00
ashn
565790e6d4 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-09-16 22:00:03 +01:00
Ray
45a099c0f0 Update BINDINGS.md 2023-09-16 22:00:03 +01:00
ubkp
92bf6e8bad Fix examples/others/rlgl_standalone.c compilation issue (#3242) 2023-09-16 22:00:03 +01:00
Ray
35028b3d21 Added fortran-raylib 2023-09-16 22:00:03 +01:00
Brian-E
7b4d83ff0e removed a few useless parenthesis 2023-08-13 03:26:55 +01:00
Brian-E
10993c5939 I may have gotten overboard with indentation 2023-08-13 03:25:15 +01:00
Brian-E
f85f9d4c4f removed spacing around *, standardizing it. 2023-08-13 02:55:52 +01:00