Commit graph

6,673 commits

Author SHA1 Message Date
ubkp
ab1c437aa1 Add SetWindowMaxSize for desktop and web (#3309)
* Add SetWindowMaxSize for desktop and web

* Remove SizeInt and respective adjustments
2023-09-16 22:00:05 +01:00
bohonghuang
3ba12dfa31 Add claw-raylib to BINDINGS.md (#3310) 2023-09-16 22:00:05 +01:00
Ray
e98bca66f6 Update webassembly.yml 2023-09-16 22:00:05 +01:00
Kenta
45c385304b Update BINDINGS.md (#3307)
Fix Kaylib binding. Reroute to a new repository.
Binding renamed.
2023-09-16 22:00:05 +01:00
Peter0x44
330e7010f4 Implement FLAG_WINDOW_RESIZABLE for web (#3305)
Fixes #3231
2023-09-16 22:00:05 +01:00
Ray
2917c522c6 REVIEWED: TextToPascal() issue when first char is uppercase 2023-09-16 22:00:05 +01:00
Rob Loach
19cbdbb4e7 rtextures: Fix ImageDraw() source clipping when drawing beyond top left (#3306) 2023-09-16 22:00:05 +01:00
Ryan Roden-Corrent
f927b99b63 Revert "Disable UBSAN in zig builds. (#3292)" (#3303)
This reverts commit a316f9e7fc.

Issue #1891 was fixed again, so this is no longer needed.
2023-09-16 22:00:05 +01:00
MichaelFiber
e6b645ff2a Remove unneeded #if (#3301)
Co-authored-by: MichaelFiber <michael@cubeofb.org>
2023-09-16 22:00:05 +01:00
Ray
f8e05e3981 Some code restructuring for input functions, consistency review 2023-09-16 22:00:05 +01:00
Ray
3c1331f954 Update rtext.c 2023-09-16 22:00:05 +01:00
Ray
8c2932b45d Reviewed examples for consistency 2023-09-16 22:00:05 +01:00
Gabriel dos Santos Sanches
38b6950891 examples: core: adds 2D camera two player split screen (#3298) 2023-09-16 22:00:04 +01:00
Dan Vu
bcdd5997ac added raylib-raku to bindings (#3299) 2023-09-16 22:00:04 +01:00
Ray
140f624c92 Review to avoid UBSAN complaining #1891 2023-09-16 22:00:04 +01:00
MichaelFiber
445f024106 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-16 22:00:04 +01:00
SuperUserNameMan
7026ede3c0 Update Makefile : clean raygui.c & physac.c (#3296) 2023-09-16 22:00:04 +01:00
Ray
c0e525079c Update rcore.c 2023-09-16 22:00:04 +01:00
Ray
3d9263062d Mouse offset and scaling must be considered also on web! 2023-09-16 22:00:04 +01:00
Asdqwe
8a6c1b72b7 Update cmake SUPPORT_FILEFORMAT_SVG default value (#3291) 2023-09-16 22:00:04 +01:00
Ikko Eltociear Ashimine
c440a5ea46 Update README.md (#3290)
specially -> especially
2023-09-16 22:00:04 +01:00
Ryan Roden-Corrent
4ed1caebe2 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-16 22:00:04 +01:00
Ray
224f0af429 Fix #3293 2023-09-16 22:00:04 +01:00
Ray
3ec569f287 Update config.h 2023-09-16 22:00:04 +01:00
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