Ray
dcd813068b
Update raylib.h
2026-02-12 18:55:42 +01:00
Ray
070082f8c9
REVIEWED: Comments to impersonal format
2026-02-12 18:55:40 +01:00
Yui Kinomoto / きのもと 結衣
4e7c38ac43
fix SDL SetGamepadMappings ( #5548 )
2026-02-12 17:04:22 +01:00
Ray
3aced1fd7c
Update rmodels.c
2026-02-10 18:02:42 +01:00
Ray
48ec41f0ec
Update raylib.h
2026-02-10 18:02:36 +01:00
Ray
efda35b309
Update win32_clipboard.h
2026-02-10 00:37:45 +01:00
Nikolai S. Kiselev
3b647c85e1
raymath: wrap float3 and float16 for consistency with other types ( #5540 )
2026-02-10 00:05:35 +01:00
Ray
b39cc6bce7
Update win32_clipboard.h
2026-02-09 23:28:02 +01:00
Ray
7e59e1d93d
REVIEWED: Formating
2026-02-09 22:29:47 +01:00
Ray
84f75785ee
Update rcore.c
2026-02-09 22:29:13 +01:00
Ray
f190c6a4d4
Update rcore.c
2026-02-09 22:27:16 +01:00
Ray
e67dc15a52
Update rcore_desktop_glfw.c
2026-02-09 22:25:55 +01:00
Ray
f6910bc1e0
Update rcore_drm.c
2026-02-09 22:25:52 +01:00
Ray
a654beb565
REVIEWED: Comments
2026-02-09 22:25:20 +01:00
Ray
eba1fca933
Update rcore.c
2026-02-09 22:24:44 +01:00
Ray
49cd2ddaa1
Update rcore.c
2026-02-09 22:24:07 +01:00
Ray
c4baa5b81d
REVIEWED: Comments
2026-02-09 22:23:23 +01:00
mikeemm
5a36ce5e7c
[rcore] Implemented SetWindowMaxSize, SetWindowMinSize, and SetWindowSize ( #5536 )
...
* implemented SetWindowMaxSize, SetWindowMinSize and SetWindowSize
* removed outdated warning
* prevented incompatible size limits
2026-02-09 13:00:18 +01:00
Ross Martin
a6fa8b9ff4
Fix out of bound Memory read in Material.maps ( #5534 )
...
* Fix out of bounds Memory read in Material.Maps by using the MATERIAL_MAP_SPECULAR define instead of the SHADER_LOG_SPECULAR enum
* Fix out of bounds Memory read in Material.Maps by using the MATERIAL_MAP_SPECULAR define instead of the SHADER_LOG_SPECULAR enum
2026-02-06 13:58:27 +01:00
Ray
4f76b896d5
REVIEWED: CheckCollisionLines(), formating and follow raylib conventions
2026-02-06 10:55:42 +01:00
bielern
3881d2aac2
Fix: Detect collision if one line is almost vertical ( #5510 ) ( #5531 )
2026-02-05 19:21:45 +01:00
Maicon Santana
f43e049444
Refactor removing extra space and add break line for { ( #5533 )
...
Co-authored-by: maiconpintoabreu <maicon@thinkpad02.exads.com>
2026-02-05 15:10:55 +01:00
Maicon Santana
d4f636151b
refactor to follow the CONVENTIONS.md ( #5530 )
...
Co-authored-by: maiconpintoabreu <maicon@thinkpad02.exads.com>
2026-02-04 19:43:55 +01:00
Alexander Fasching
a96cbe0183
Close opened directory ( #5529 )
2026-02-04 19:42:44 +01:00
mikeemm
4c1efc2bd3
[rcore] Fix native win32 window minimizing/maximizing ( #5524 )
...
* fixed typos preventing window from min/maxing
* fixed window style generation ignoring minimize precedence, causing errors in edge cases
* added maximize button on resizable windows
* fixed infinite loop when resizing the window manually
* activate window upon creation to set focus and show taskbar icon
* extended SanitizeFlags() to account for problematic resizing/mizing flag mixups
2026-02-04 19:37:12 +01:00
Thomas Anderson
ccfa3f762a
fixed an issue when using an empty window title ( #5526 )
2026-02-03 23:12:13 +01:00
Aly
33dcd62663
Added documentation comments for ( #5525 )
2026-02-02 11:21:10 +01:00
Eddy Jansson
403c2cbccf
trivial: Correct typo in log message. ( #5523 )
...
* trivial: Correct typo in log message.
* trivial: Correct typo in rlparser.
2026-01-31 23:18:52 +01:00
mikeemm
1aafd3c4a4
fixed win32 vsync flag not being applied ( #5521 )
2026-01-31 23:17:55 +01:00
Maicon Santana
08e79a16b0
Refactoring {0} to { 0 } to follow conventions ( #5519 )
...
Co-authored-by: maiconpintoabreu <maicon@thinkpad02.exads.com>
2026-01-29 17:30:03 +01:00
Ray
de7fc12be0
REVIEWED: IsGamepadButton*() for consistency with key and mouse equivalents
2026-01-28 19:35:54 +01:00
Ray
8a2da96eed
Reviewed formating and spacing
2026-01-28 19:34:55 +01:00
Maicon Santana
af37fa2a96
Refactoring based on Coding Style Conventions ( #5517 )
...
Co-authored-by: maiconpintoabreu <maicon@thinkpad02.exads.com>
2026-01-28 19:27:03 +01:00
Jason Mao
d0a6892989
[rcore] IsMouseButton*(), random key codes return unexpected results ( #5516 )
...
* update
* update
* stuff
* update
* move headerfile to root
* delete .h
* update ignore
* fix IsMouseButtonDown\Pressed\Released\Up will get randomly returned to true when the button code is outside the range of mouse button
* remove unessary macro
* refactor IsMouseButton*() early returns
2026-01-28 19:26:07 +01:00
mikeemm
63e4fd838d
fixed typos preventing launch of native win32 backend ( #5515 )
2026-01-27 17:38:51 +01:00
ssszcmawo
3568b6e293
[rtext] Fix and enhance TextReplace() function ( #5511 )
...
* add check for replacement,replace strcpy,strncpy with memcpy
* add 4 spaces in if statement
* add spaces
2026-01-26 12:04:22 +01:00
Ray
6986183858
Merge branch 'master' of https://github.com/raysan5/raylib
2026-01-25 19:06:11 +01:00
Ray
65cddc852e
Reviewed comments
2026-01-25 19:06:08 +01:00
Maicon Santana
afe74c1c70
Refactor int to float missing parse ( #5503 )
...
* refactor int to float parse
* Reverting as requested
---------
Co-authored-by: Maicon <maicon@thinkpad02.exads.com>
2026-01-24 21:53:22 +01:00
Viktor Demčák
70a63f7c62
[web] Fix Emscripten's Closure compiler error: undeclared canvas variable ( #5507 )
...
* Fix Emscripten Closure compiler error: undeclared canvas variable
* Fix hardcoded canvas IDs in web targets
2026-01-24 21:21:43 +01:00
Ray
a33ae4a8ef
Update raymath.h
2026-01-23 17:11:37 +01:00
The4codeblocks
b21d7f234b
[raymath] QuaternionFromVector3ToVector3(), math is wrong ( #5508 )
...
* the math in QuaternionFromVector3ToVector3 is wrong
* fix styling
2026-01-23 17:08:10 +01:00
Viktor Demčák
eda915232d
Update miniaudio to v0.11.24 ( #5506 )
2026-01-23 14:13:17 +01:00
nate
e16467e8b6
Clean up Matrix handling and rl* functions to follow convention ( #5505 )
...
- Use named fields in rlTranslatef and rlScalef instead of array literals
- Label implicit row-major to column-major transpose in MatrixToFloatV
- Update rlSetUniformMatrix to use rlMatrixToFloat convention
2026-01-23 13:53:57 +01:00
Catania
594f5429b2
[rcore] LoadDirectoryFilesEx(), count files if not recursive ( #5496 )
...
* LoadDirectoryFilesEx on not recursive loading count files
* Removed FilePathList.capacity
* Added security check in case of memory leak
* Fix stop loading paths early on recursive loading
* Fix count directories only if filter contains DIRECTORY_FILTER_TAG
* rlparser: update raylib_api.* by CI
* GetDirectoryFileCount() and GetDirectoryFileCountEx() made visible
* rlparser: update raylib_api.* by CI
* Added new file and directories filter tags
* Renamed `fileCount` in `ScanDirectoryFiles()` to `expectedFileCount`
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-23 13:48:26 +01:00
Ray
29896a2403
REVIEWED: Some comments (Code Gardening)
2026-01-19 12:40:32 +01:00
Ray
439448ad7c
Update rcore.c
2026-01-15 10:43:08 +01:00
Ray
0df2fe981b
REVIEWED: ExportFontAsCode() #5497
2026-01-15 10:42:58 +01:00
base
a938a7c97a
chore: add GetAppDir for wasm returning root VFS ( #5495 )
2026-01-15 10:08:03 +01:00
Matthew Kennedy
026b7e808a
fix drm resources leak ( #5494 )
2026-01-15 10:03:54 +01:00
Ray
28b9411e9d
REMOVED: RLGL_RENDER_TEXTURES_HINT, enabled by default and no complaints of anyone having issues #5479
2026-01-12 13:23:27 +01:00
Ray
0c33c603f4
REVIEWED: EXTERNAL_CONFIG_FLAGS usage, check moved to config.h
...
Due to `utils` module removal, `EXTERNAL_CONFIG_FLAGS` was not working, so the system was redesigned.
This change is independent of #4411
2026-01-12 13:04:38 +01:00
Ray
4badbe2b17
REVIEWED: Variable scope #5485
2026-01-11 21:02:59 +01:00
Ray
1606dca0cb
Update CMakeLists.txt
2026-01-10 12:20:26 +01:00
Ray
dd7a1948f1
WARNING: REDESIGN: REMOVED: utils module, functionality moved to rcore module: logging and file-system #4551
...
[utils] was created long time ago, when [rcore] contained all the platforms code, the purpose of the file was exposing basic filesystem functionality across modules and also logging mechanism but many things have changed since then and there is no need to keep using this module.
- Logging system has been move to [rcore] module and macros are exposed through `config.h` to other modules
- File system functionality has also been centralized in [rcore] module that along the years it was already adding more and more file-system functions, now they are all in the same module
- Android specific code has been moved to `rcore_android.c`, it had no sense to have specific platform code in `utils`, [rcore] is responsible of all platform code.
2026-01-10 12:13:07 +01:00
Ray
6833305826
REVIEWED: android_fopen()
2026-01-10 10:59:22 +01:00
lucas150670
8de88c71da
fix: fall back on dirent filename when all route fails on Android ( #5484 )
2026-01-10 10:54:54 +01:00
Pîrvu Mihai Cristian
5b0a799769
fix ( #5482 )
2026-01-09 23:09:06 +01:00
Ray
4cf844b74e
Update raylib.h
2026-01-09 19:55:31 +01:00
Marcos Paccor
16e6d325b9
[raudio] Fix freeing the wrong memory ( #5481 )
2026-01-08 22:04:09 +01:00
Krzysztof Szenk
0bcf79ce28
[ #5455 ] Fix for: Fix window width calculation by adding wOffset ( #5480 )
2026-01-08 17:26:56 +01:00
Ray
229f82699b
Reviewed change #5476
2026-01-07 22:36:40 +01:00
ssszcmawo
c256f146b4
added saving to memory buffer and SaveFileData for binary files ( #5476 )
2026-01-07 22:32:58 +01:00
Ray
23bc037c37
Revert change, trying to follow DRM implementation but not needed on Android #5477
2026-01-07 22:32:09 +01:00
Jeffery Myers
c78ac65786
Don't require a M3d animation only file to have a mesh. There are valid use cases for animation only files that can be applied to N other meshes. ( #5475 )
2026-01-06 22:32:42 +01:00
Ray
3678c2d157
REMOVE: TRACELOGD(), hardly ever used
2026-01-05 20:47:25 +01:00
ssszcmawo
af544c24b9
[rcore] Fix touch position automation event handling ( #5470 )
...
* fix touch position automation event handling
* Fix alignment of previousPosition comment in rcore.c
2026-01-03 22:57:22 +01:00
Michael Kolupaev
c4b11a30cd
Fix DrawMeshInstanced breaking if instanceTransform is unused ( #5469 )
2026-01-03 22:52:04 +01:00
Jeffery Myers
f67e70bb47
Fix typecast warnings in rcore ( #5466 )
2026-01-03 08:59:34 +01:00
Ray
c92de5f108
REVIEWED: Comments about intrinsics support #5316
2026-01-02 18:43:28 +01:00
Ray
ca89934ed5
Update year to 2026
2026-01-02 13:53:20 +01:00
Ray
416af51a93
Update year to 2026
2026-01-02 13:40:15 +01:00
Ray
c07d075a63
REVIEWED: Security checks formatting and comments
2026-01-01 16:54:44 +01:00
GlitchLens
5a3391fdce
[rtext] Fix multiple security vulnerabilities in font loading ( #5433 , #5434 , #5436 ) ( #5450 )
2026-01-01 16:35:12 +01:00
Ray
909f040dc5
Remove trailing spaces
2026-01-01 16:33:34 +01:00
Jeffery Myers
eb4ad50d99
make sure that our up vector really is up in an axis before picking a world plane ( #5459 )
2025-12-31 23:52:08 +01:00
Ray
95f72b162b
REVIEWED: TextReplace(), revert breaking change, needs to be reviewed again... -WIP-
2025-12-31 22:50:17 +01:00
Ray
2377506843
Update rcamera.h
2025-12-31 20:50:27 +01:00
Jeffery Myers
0133a4e6c6
Make CameraMove up and right work with Z up cameras like the other functions do. ( #5458 )
2025-12-31 20:45:29 +01:00
Ray
c124f2552b
REVIEWED: SIMD instrinsics must be explicitly enabled by developer, only SSE supported at the moment #5316
2025-12-31 11:22:26 +01:00
Ray
66755da4c8
REVIEWED: eglGetPlatformDisplay() usage
2025-12-31 11:08:17 +01:00
Ray
02cca28b5f
REVIEWED: eglGetPlatformDisplay() usage
2025-12-31 11:08:10 +01:00
McDubh
25ce6465d5
Added SSE to MatrixMultiply. ( #5427 )
2025-12-31 10:58:58 +01:00
Alvin De Cruz
4af95a3a84
Use eglGetPlatformDisplayEXT on DRM platform for Mali compatibility ( #5446 )
2025-12-31 10:33:17 +01:00
CosmosShell
e534f14419
Fix window width calculation by adding wOffset ( #5457 )
2025-12-31 09:05:39 +01:00
Ray
0c3e10b262
REVIEWED: FileExists(), using macro
2025-12-30 22:49:43 +01:00
Ray
6e70dece56
Update minshell.html
2025-12-30 22:05:37 +01:00
Ray
2b48cf6793
Formating review
2025-12-29 13:06:05 +01:00
MULTi
1c6f683161
[rcore][drm] Improved touch input handling and multitouch support, closes #4842 ( #5447 )
...
* Improved touch input handling and multitouch support in drm platform
* revert
* made some fixes for the touch issue in drm platform
* updated touch input handling by adding multitouch support
* improved how it handles the multitouch
* added cleanup
* Remove touch last update tracking to simplify touch input handling
* improved multitouch support by tracking touch positions and IDs for each slot
* Better touch input handling
* Increase maximum touch points from 8 to 10 and enhance touchscreen prioritization logic
* Refactor touch input handling to use slot index as ID for stability and simplify touch clearing logic
* Improve touch input handling by activating slot 0 based on mouse click or touch events
* touch event handling to use tracking ID for unique touch identification
* Add multitouch detection to PollMouseEvents for improved touch handling
* Fix conditional formatting in PollMouseEvents for clarity
* Refactor conditional statements in PollMouseEvents and InitPlatform for improved readability
* Fix formatting in PollMouseEvents for improved readability
2025-12-29 12:54:30 +01:00
Padmadev D
00f42e4199
[rcore] [android] fixed gesture system not reporting GESTURE_NONE ( #5452 )
...
in android gesture system is not reporting GESTURE_NONE, specified in the issue https://github.com/raysan5/raylib/issues/5010 so, automatically GESTURE_SWIPE, TAP, DOUBLE_TAP, also will not be reported. in this commit it is fixed.
2025-12-29 12:50:12 +01:00
Ray
58d414bcf8
REVIEWED: InitPlatform(), code simplification
2025-12-29 12:39:40 +01:00
Ray
eb3cc183cc
REVIEWED: FIXED: Windows fullscreen, after breaking it due to X11/Wayland changes
2025-12-28 20:29:01 +01:00
Ray
a334a54eac
Update rcore_desktop_glfw.c
2025-12-28 20:09:15 +01:00
Ray
890ca8d687
REVIEWED: GetWindowPosition(), return internal value
2025-12-28 20:04:44 +01:00
Ray
8a75439c25
REVIEWED: Fullscreen modes on Linux (X11 over XWayland)
...
It does not work as expected... :(
2025-12-28 19:51:04 +01:00
Ray
4176c518c7
Update rcore_desktop_glfw.c
2025-12-28 18:40:44 +01:00
Ray
c0c8ee9dc8
Update rcore_desktop_glfw.c
2025-12-28 18:15:47 +01:00
Ray
11c248aa82
Update rcore_web.c
2025-12-28 16:20:43 +01:00
Ray
2cf8983e18
WARNING: REDESIGNED: Fullscreen modes, use current display resolution
...
Considering multi-monitor and multi-ppi configurations
Fullscreen-exclusive scales to available display resolution, ignoring content scaling
Windowed-borderless scales to available logical resolution considering HighDPI **if requested**
2025-12-28 16:11:42 +01:00
Ray
8cfb99f275
Minor comment tweaks
2025-12-28 16:08:19 +01:00
Ray
1d8e011eee
Update rcore_drm.c
2025-12-28 16:08:08 +01:00
Ray
37bc3f5012
REMOVED: SetupFramebuffer(), most platforms do not need it any more
...
Kept only for platforms that could potentially need it
2025-12-28 16:07:59 +01:00
Ray
da1a76604f
REMOVED: CORE.Window.fullscreen, using available flag instead
2025-12-28 16:05:42 +01:00
TheLazyIndianTechie
84dfe6a4cf
[rmodels] Fix glTF animation framerate calculation ( #4472 ) ( #5445 )
...
- Changed GLTF_ANIMDELAY (17ms, ~58.82fps) to GLTF_FRAMERATE (60.0fps)
- Updated frameCount calculation: (animDuration * 60) instead of (animDuration * 1000 / 17)
- Updated time calculation: j / 60.0f instead of (j * 17) / 1000.0f
This fixes animation frame count misalignment when importing glTF models
exported at standard 60fps. Animations that were 27+ frames shorter than
expected on 1350-frame sequences will now import correctly.
2025-12-27 14:22:24 +01:00
Ray
25a54d87e6
Update rcore_desktop_win32.c
2025-12-26 21:09:53 +01:00
Ray
64bd27bd08
Update rcore_desktop_glfw.c
2025-12-26 20:49:03 +01:00
Dino
aee6734cff
fix: set correct default axes for gamepads that are not connected (inside rcore_desktop_glfw.c) ( #5444 )
...
* fix: set correct default axes for gamepads that are not connected
`glfwGetGamepadState` will set all gamepad state variables to 0.0 if required gamepad is not connected, but `RecordAutomationEvent()` inside rcore.c expects trigger axes to be -1.0f when gamepad is not connected. Since SDL and RGFW return -1.0f in such case, this change is aligning it with them
* updated comment in rcore_desktop_glfw.c
2025-12-26 20:46:09 +01:00
Alvin De Cruz
5e14ac5a2e
#5387 - Fix keyboard input detected as gamepad on some Android devices ( #5439 )
...
* [rcore][android] Fix keyboard input detected as gamepad on some devices (#5387 )
* [core] Add keyboard vs gamepad input test example (#5387 )
2025-12-26 20:42:32 +01:00
Dan Vu
101502103a
Fixed FLAG_IS_SET to check if all bits in the flag are set in the value ( #5441 )
2025-12-24 20:58:40 +01:00
Ray
20dd4641c8
REVIEWED: Potential security concerns while copying unbounded text data between strings
...
Note that issue has been reported by CodeQL static analysis system
2025-12-24 19:35:06 +01:00
Ray
9103f6e055
ADDED: New platform backend for Web: Emscripten, not dependant on GLFW.js -WIP-
2025-12-24 18:58:20 +01:00
Ray
ced84333a9
Update rl_gputex.h
2025-12-24 18:02:24 +01:00
Krzysztof Szenk
a1e84caa8c
RGFW also requires RGBA8 images as window icons, as raylib already reports in raylib.h ( #5431 )
2025-12-24 09:04:41 +01:00
Kivi
ddb827fb6f
Fixed LoadCodepoints declaring a new local variable shadowing codpoints ( #5430 )
2025-12-24 08:59:51 +01:00
Michael Smith
0a4583ca54
[rl_gputex.h] Possibly fixed the swizzling in rl_load_dds_from_memory() function ( #5422 )
...
* Possibly fixed the swizzling bug
* Removed examples, and generation.
2025-12-23 17:10:55 +01:00
caszu
6a701b2679
fix android SetWindowState ( #5424 )
2025-12-23 15:37:08 +01:00
Ray
aa2884bd78
Update rcore_desktop_glfw.c
2025-12-22 22:50:38 +01:00
Ray
f27f2d097f
REVIEWED: HighDPI support on macOS (when requested by app)
...
Tested on two monitors with different DPI configuration, for HigDPI enabled and not, including window resizing (with framebuffer resizing if required). Verified mouse coordinates follow the requested screen size.
2025-12-22 22:48:08 +01:00
Ray
e4baf682ab
Update rtext.c
2025-12-22 20:30:11 +01:00
Ray
8516750975
Remove internal function
2025-12-22 20:29:57 +01:00
Ray
13f9112d8c
Update rcore_desktop_sdl.c
2025-12-19 01:16:34 +01:00
Ray
f16fb065ea
Update rcore_template.c
2025-12-19 01:15:34 +01:00
Ray
66392fe0ae
REVIEWED: rlGetPixelDataSize(), correct compressed data size calculation per blocks #5416
2025-12-19 00:06:44 +01:00
Ray
720dd22491
REVIEWED: rlLoadTexture(), un complete texture do to issue on mipmap loading #5416
2025-12-18 17:04:58 +01:00
Ray
4b760091da
REVIEWED: Window scaling with HighDPI on macOS #5059
2025-12-17 21:23:25 +01:00
Ray
6d562e5e87
REVIEWED: HiggDPI content scaling on changing monitors with different DPI #5335 #5356
...
Note that high-dpi awareness must be enabled by users and `CORE.Window.render` reports the scaled framebuffer size, while `CORE.Window.screen` reports the logical size.
`ToggleBorderlessWindow()` has also been reviewed to be consistent with scaling, if monitor physical display size is reported as 1920x1080 but there is a content scale of 1.5, then the borderless fullscreen window will be 1280x720, with the 1920x1080 framebuffer
2025-12-17 19:20:18 +01:00
Ray
7553e9d586
REVIEWED: Gamepads on latest SDL2 2.32.8 and SDL3 3.3.6 #5403
2025-12-16 19:36:01 +01:00
Ray
7a5e8aa3a5
Update rcore_android.c
2025-12-16 18:30:33 +01:00
caszu
1c94e94873
[rcore] Implement FLAG_WINDOW_ALWAYS_RUN on Android ( #5414 )
2025-12-16 18:26:20 +01:00
Ray
f031b2f4f4
Alignment with other platform backends, avoid unneeded includes
2025-12-16 18:20:02 +01:00
Ray
1c7240a01d
Revert "REVIEWED: Alignment with other platforms"
...
This reverts commit cf0d6fc664 .
2025-12-16 18:18:42 +01:00
Ray
cf0d6fc664
REVIEWED: Alignment with other platforms
2025-12-15 20:44:28 +01:00
Ray
615fc36eeb
Fix #5406
2025-12-15 18:56:14 +01:00
Ray
cbe31759ab
Fix #5405
2025-12-15 18:52:27 +01:00
Ray
a0fd5ab1d9
Update rmodels.c
2025-12-14 19:59:12 +01:00
Ray
9a337f3b3b
ADDED: Support software renderer on Web, blitting framebuffer data directly to a 2d canvas
...
This improvement is just a prove of concept, at this moment `PLATFORM_WEB` is limited in terms of software rendering by `GLFW` that only allows creating a WebGL canvas context with `glfwCreateWindow()`.
We can skip that call but then some GLFW functionality is not available (windowing, inputs). The best solution is replacing GLFW completely by a pure Emscripten implementation for `PLATFORM_WEB`.
2025-12-14 19:52:18 +01:00
Ray
5025009860
REVIEWED: Make sure all variables are initialized on definition, prioritize one line per variable definitions
2025-12-14 19:45:28 +01:00
Ray
c96669e123
REVIEWED: Webpage reference comments starting with REF:, more consistent with TODO: and NOTE: comments
2025-12-13 13:03:41 +01:00
Ray
9c04b1de82
REVIEWED: Store canvas name id at platform initialization
...
Useful to support multiple canvases running different wasm instances in same webpage
2025-12-13 11:58:04 +01:00
Ray
b465b4e2ea
RENAMED: Variable names for consistency, textLength (length in bytes) vs textSize (measure in pixels)
2025-12-11 21:41:25 +01:00
Ray
2853b28d6d
REVIEWED: Avoid program crash if GPU data is tried to be loaded before InitWindow() #4751
...
Following raylib design, a warning log message is shown and program can continue execution.
Some early return checks have been added on most critical functions.
[rtext] Previous implementation checking `isGpuReady` cross-module variable is not needed any more, resulting in a more decoupled code, load failure is managed at rlgl level
2025-12-11 18:21:57 +01:00
Jeffery Myers
6f7cd3a9ab
[core] Camera2d comment updates ( #5401 )
...
* Make the comments on the camera 2d fields more clear about what space each one is in.
* rlparser: update raylib_api.* by CI
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-11 13:37:17 +01:00
Ray
2a566544d4
ADDED: Multiply security checks to avoid crashes on wrongly provided string data #4751
...
- REVIEWED: Checking `NULL` input on functions getting `const char *text`, to avoid crashes
- REVIEWED: `strcpy()` usage, prioritize `strncpy()` with limited copy to buffer size
- REPLACED: `strlen()` by `TextLength()` on [rtext] module
- REVIEWED: Replaced some early returns (but keeping others, for easier code following)
2025-12-11 12:59:55 +01:00
Ray
bc2057345b
REVIEWED: GetRandomValue(), explained the new approach to get more uniform random values range
2025-12-10 09:30:18 +01:00
Marcos De La Torre
f2a900a60d
[rcore] Fix modulo bias in GetRandomValue() ( #5392 )
...
* Fix modulo bias in GetRandomValue(); implement rejection sampling for uniformity
* Replace do-while with for-loop in GetRandomValue rejection sampling
2025-12-10 09:23:40 +01:00
Ray
3adfde42f7
REVIEWED: rlLoadTeexture(), max mipmap levels to use #5400
2025-12-10 09:21:33 +01:00
Ray
91ac3cc707
FIX: LoadRandomSequence(), using GetRandomValue() #5393
2025-12-09 20:02:38 +01:00
Gregory Mitchell
be6007be93
fix: sha1 computation on messages longer than 31 bytes ( #5397 )
2025-12-09 19:18:43 +01:00
Ray
8115b7e922
Update rmodels.c
2025-12-06 20:40:23 +01:00
BoneManSeth
fd8830948e
fix newer NDK version compiling errors ( #5389 )
...
target already gets assigned by the clang macro it points to, overwriting it causes it to target linux instead of android, making it check for usr directories instead of the NDK's directories
2025-12-06 20:01:47 +01:00
Ray
f9899a7182
Reviewed code formating
2025-12-06 20:00:19 +01:00
Jeffery Myers
561cc27403
[rModels] Support 16 bit vec3 values in gltf reader ( #5388 )
...
* Support 16 bit vec3 values coming from gltf
* Add support for 8 bit normals
2025-12-06 19:50:59 +01:00
Aly
78a81bf407
Fix ToggleBorderlessFullscreen() Not Hiding Taskbar ( #5383 )
...
* Use glfwSetWindowMonitor instead of Pos and Size GLFW functions
* Fix window not resetting properly when toggling out of fullscreen, formatting
2025-12-02 22:55:22 +01:00
Connor O'Connor
944567651c
replace sprintf with snprintf ( #5382 )
2025-12-02 22:49:55 +01:00
Connor O'Connor
1bbc8682f4
Fixed some typos and mispellings ( #5381 )
...
Specifically "occured" -> "occurred"
2025-12-02 22:48:06 +01:00
Ray
4724f7cf1b
REVIEWED: Comments for UpdateSound() specifying expected data format #5350
2025-11-30 19:02:38 +01:00
Ray
a568506265
REVIEWED: External libraries sdefl and sinfl to address #5367
2025-11-30 18:32:11 +01:00
Ray
ebce9fa97a
Update rcore_memory.c
2025-11-29 20:01:44 +01:00
Ray
18e1ec504f
Updated example
2025-11-29 18:20:06 +01:00
Ray
8f3cabcf76
Update rcore.c
2025-11-25 19:13:08 +01:00
Ray
47a8b554bc
**NEW**: PLATFORM_MEMORY backend
...
New platform backend for software rendering directly on RAM memory buffer
2025-11-24 15:38:58 +01:00
Ray
bd36610f91
Some formatting
2025-11-24 15:37:28 +01:00
Ray
7e3d6cbfa8
Update rcore.c
2025-11-23 23:16:32 +01:00
Ray
17dc2bb474
Update rcore.c
2025-11-23 22:58:15 +01:00
Ray
aaa893f668
Update rcore.c
2025-11-23 22:58:10 +01:00
Ray
e1b9857b14
Some TODOs and format reviews
2025-11-23 21:40:39 +01:00
Ray
f1719480e0
Minor format tweaks
2025-11-23 13:21:31 +01:00
Ray
6c3ef8d9b4
Remove trailing spaces
2025-11-22 20:15:50 +01:00
Jeffery Myers
90af210712
include malloc.h so the win32 platform can build in MSVC ( #5365 )
2025-11-20 08:00:23 +01:00
Ray
ba65bd7f99
WARNING: BREAKING: Redesigned SetSoundPan() and SetMusicPan() #5350
...
Now it goes from -1.0 (full left) to 1.0 (full right) being 0.0 center
2025-11-20 00:03:03 +01:00
Ray
d26435703f
Update rcore_desktop_win32.c
2025-11-19 13:18:13 +01:00
Ray
265fa7833c
Update rtext.c
2025-11-19 10:21:16 +01:00
Ray
f21c1cc6ae
Update rtext.c
2025-11-19 10:08:42 +01:00
Ray
ec828071ef
Update rtext.c
2025-11-19 10:04:01 +01:00
Adi Čaušević
e2233acdb0
feat: Optimize ImageClearBackground and ImageDrawRectangleRec with doubling strategy ( #5363 )
2025-11-19 08:58:43 +01:00
Robin ❤️
3f92c396a0
Fixed typo ( #5364 )
2025-11-19 08:56:32 +01:00
Ray
57e22d5fa0
Update rtext.c
2025-11-18 21:26:26 +01:00
Ray
86e00bde65
Update rcore_desktop_sdl.c
2025-11-18 16:30:48 +01:00
MikiZX1
b18f547d8f
Update rcore_desktop_sdl.c, fix crash when strncpy tries to copy using NULL pointer ( #5359 )
...
When SDL_GameControllerNameForIndex returns null, the app crashes. This was addressed earlier in PR#4859 though the fix submitted on PR #4859 was only fixing the crashing and not addressing the root cause.
2025-11-18 16:19:07 +01:00
Serhii Zasenko
be9a24e68c
Fix controller not available right after win init ( #5358 )
...
- Fix IsGamepadAvailable() returns false for an available controller immediately after window initialization
2025-11-18 16:17:58 +01:00
Ray
4dbe04b250
Update config.h
2025-11-13 11:26:54 +01:00
Ray
8ae2c9cf5f
FIX: LoadFontDataBDF() #5346
2025-11-12 10:22:56 +01:00
Ray
7f82da0031
Update rlsw.h
2025-11-11 17:40:21 +01:00
Ray
fcaea5b1a1
Remove trailing spaces
2025-11-11 17:39:53 +01:00
Ray
4e8b087ffe
REVIEWED: ComputeSHA256()
2025-11-11 17:15:40 +01:00
Ray
0b4815b8fe
WARNING: REMOVED: GIT recording option, added example
2025-11-09 13:43:08 +01:00
Le Juez Victor
4ff296bf0b
fix clipping issue ( #5342 )
2025-11-08 11:28:15 +01:00
JohnnyCena123
12ce106661
[rcore][glfw] fix IsWindowFocused() inverted logic ( #5333 )
2025-11-04 18:17:37 +01:00
iann
48c1619d20
added consistent behavior for texture in opengl11 draw states and fixed loadobj texcoord behavior for opengl11 context ( #5328 )
2025-11-04 17:52:53 +01:00
NoNameAuthenticated
e92832fc6d
Update rcore_desktop_sdl.c ( #5332 )
2025-11-04 17:50:54 +01:00
Ray
cfb43fa999
Update rcore_desktop_sdl.c
2025-11-03 09:45:18 +01:00
komunre
ed68a4fcce
Fixed bugs in SDL backend ( #5325 )
2025-11-03 09:43:20 +01:00
Ray
ee3be5799a
Update raymath.h
2025-11-02 19:59:46 +01:00
Ray
87d49262f8
REVIEWED: raymath: MatrixCompose()
2025-11-02 19:53:45 +01:00
EDBC_REPO
81004135a4
adding Matrix MatrixCompose( translate, rotation, scale ) to raymath.h ( #5324 )
2025-11-02 19:48:11 +01:00
Tiago Ferreira
cc83b2bd8e
fix: cursor lock/unlock inconsistent behaviour on glfw, rgfw, sl ( #5323 )
2025-11-02 19:46:57 +01:00
Ray
3cf3b309c6
REVIEWED: Flags set/clear #5169
2025-11-02 19:40:45 +01:00
JohnnyCena123
5fbf67a630
[rcore] Use FLAG_* macros where possible ( #5169 )
...
* use FLAG_* macros where possible
* rename `FLAG_CHECK()` to `FLAG_IS_SET()`
* remove unnecessary equality checks
* fix issues
---------
Co-authored-by: Ray <raysan5@gmail.com>
2025-11-02 19:24:47 +01:00
Ray
0246621210
REVIEWED: SIMD intrinsics checks and usage
2025-11-01 21:06:18 +01:00
Arrangemonk
dfc94f64d1
Revert "UpdateModelAnimation does matrixtranspose(matrixinvert) only once per…" ( #5322 )
...
This reverts commit e3a562ab57 .
2025-10-31 20:43:27 +01:00
Le Juez Victor
bca54047f9
[rlsw] Review depth formats and fix depth writing ( #5317 )
...
* review depth format/writing
* adding a note
2025-10-30 19:17:18 +01:00
Ray
127cc1c79e
REVIEWED: Makefile to support software renderer
2025-10-29 22:45:37 +01:00
Ray
3389c80f49
Update rlsw.h
2025-10-29 11:33:08 +01:00
Ray
f16d5ce1dd
REVIEWED: Make sure SSE is being used when compiling with MSVC
...
Added log info and some formatting for visibility
2025-10-29 11:12:04 +01:00
Le Juez Victor
cbff0fa22c
[rlsw] Fix axis aligned quad detection ( #5314 )
...
* fix `sw_quad_is_axis_aligned`
* align fix
* remove swGetColorBuffer and tweak DRM
* review alignment
2025-10-28 23:50:04 +01:00
Ray
bf5c00f7e0
RE-ADDED: swGetColorBuffer() for convenience #5312
...
`PLATFORM_DRM` depends on it but if there is a better approach to get the buffer, it can just be removed again and replaced by alternative.
2025-10-28 20:57:31 +01:00
Ray
a844a943b5
It seems alignas() is C11 and raylib is C99, so not fully supported #5312
...
Added a workaround but it has other probably undesired implications
2025-10-28 20:45:21 +01:00
Ray
f106301d46
ADDED: Some code sample for RISC-V RVV vector instructions -WIP-
2025-10-28 20:11:29 +01:00
Ray
78870335e6
Update rlgl.h
2025-10-28 19:55:35 +01:00
Ray
93a21c7e13
Support other graphic backends on some platforms
2025-10-28 19:55:28 +01:00
Le Juez Victor
f4ed8fc50e
[rlsw] Simplify framebuffer logic and add blit/copy fast path ( #5312 )
...
* consistency tweak
* unified color and depth buffer
* tweaks
* review the storage of clear values + complete get/set depth value
* copy/blit fast path
* better simd read/write
* framebuffer alignment
* fix 'typo'
my french slipped out
2025-10-28 17:59:59 +01:00
Uneven Prankster
3b6a68ba69
Improve support for PLATFORM_DESKTOP_WIN32 in src/Makefile ( #5311 )
...
Co-authored-by: Uneven Prankster <unevenprankster@pm.me>
2025-10-27 12:12:42 +01:00
Ray
0fbc4272d0
Remove trailing spaces
2025-10-26 18:22:23 +01:00
Le Juez Victor
a818508158
[rlsw] Completeness of glDraw functions ( #5304 )
...
* adding `glDrawElements`
* tweaks
* fix `glDrawArrays` and `glDrawElements` behavior
2025-10-26 00:58:56 +02:00
Le Juez Victor
e501dfad60
[rlsw] Subpixel correction ( #5300 )
...
* fix triangle cracking
* subpixel corretion for quads
* replace Bresenham for DDA + subpixel correction
* consistency
* adding note
* style tweaks
2025-10-25 23:13:24 +02:00
Ray
79fd6be008
Minor format tweaks
2025-10-25 11:14:53 +02:00
Jeffery Myers
4bb8c89084
Don't undefine the versions of LoadImage that don't conflict with raylib so that the Win32 platform can use them. ( #5299 )
2025-10-25 09:49:31 +02:00
Le Juez Victor
39242dba23
[rlsw] Smarter texture management ( #5296 )
...
* simplified framebuffer management
* convert texture to rgba32
* remove float copy/blit
* adding SIMD framebuffer read/write
This adds SIMD framebuffer read/write, and also texel fetch.
This supports SSE2/SSE41 and SISD fallback (also includes ARM NEON support, conceptually identical but still needs testing).
* consistency
* tweaks
* review of `sw_texture_sample_linear`
* better quad sorting
unrelated to the PR, but at least it's done
* ignore some pipeline state in certains context
* convention tweaks
---------
Co-authored-by: Ray <raysan5@gmail.com>
2025-10-24 18:29:01 +02:00
Jeffery Myers
12dc0d6675
Revert undesired change to rcore and restore correct win32 ifdef and max path ( #5297 )
...
Fixes #5293
also add comment for win32 platform.
2025-10-23 17:45:33 +02:00
alexgb0
93c5dc3b5f
[rlsw] c++ support ( #5291 )
...
* rlsw c++ support
* rslw formatting fixes
2025-10-23 17:28:00 +02:00
Diogo Hartuiq Debarba
04930c5132
Fix typo in RPI cross-compiler variable name ( #5295 )
2025-10-23 13:27:28 +02:00
sleeptightAnsiC
1b5a14e516
[rcore_desktop_sdl] fix: handle monitor ID correctly on SDL3 ( #5290 )
...
SDL3 uses ID when dealing with monitors, unlike SDL2 which uses Index
for the same thing. This problem was already fixed in multiple places
by use of preprocessor branches, so I did the very same thing.
Please, notice that this is a pretty bad solution to this problem,
and I only did it to keep it consistent with the rest of the code.
The more about why it's not correct is mentioned here:
https://github.com/raysan5/raylib/issues/5256#issuecomment-3429156919
Hopefully, someone will refactor it someday :)
Fixes: https://github.com/raysan5/raylib/issues/5256
2025-10-21 22:07:04 +02:00
Ray
99ed814615
Update rcore_desktop_win32.c
2025-10-21 20:07:42 +02:00
Ray
77b9214575
Update rcore_desktop_sdl.c
2025-10-21 20:07:32 +02:00
Ray
ec06f9be37
Removed trailing spaces
2025-10-21 13:51:03 +02:00
Ray
79b7cd6b9b
Format tweaks
2025-10-21 10:08:36 +02:00
Ray
1664204291
REVIEWED: New Win32 platform backend to accomodate rlsw Software Renderer
2025-10-20 19:10:41 +02:00
Ray
ec3cb7045f
Update rcore.c
2025-10-20 19:09:56 +02:00
Ray
74f2a899d9
Update rshapes.c
2025-10-20 19:09:37 +02:00
Ray
153401810a
Merge branch 'master' of https://github.com/raysan5/raylib
2025-10-17 10:04:29 +02:00
Ray
9ed785c2e1
Update rlgl.h
2025-10-17 10:04:21 +02:00
MULTi
311f6243e3
Disable touch position simulation from mouse movement for DRM touchscreen devices ( #5279 )
2025-10-17 10:01:24 +02:00
Ray
601ff4f02e
REVIEW: Naming tweaks and comments added #5271
2025-10-17 09:54:49 +02:00
Mr. Ai
484cc0e255
Fix DrawBillboardPro so that flipped images that are sampling from part of a larger texture still draw from the same source rectangle ( #5276 )
...
Co-authored-by: Violently <violently@violently.violently>
2025-10-16 10:18:42 +02:00
Ray
af068ec020
Reviewed dynamic library building #5270
2025-10-15 20:18:44 +02:00
Ray
18e4d1d44f
Reviewed formating
2025-10-15 19:20:11 +02:00
Saksham Goyal
adfe2c1704
C++ compiler support v2 ( #5252 )
...
* Get C++ compilers working
* Fix Formatting
2025-10-15 19:11:44 +02:00
JohnnyCena123
17bc628fd9
[rcore] Add ComputeSHA256() function ( #5264 )
...
* [rcore] Add `ComputeSHA256()` function
* adjust function signatures
* review issues
* fix repeating 0
* fix mistake
* fixed macro
* remove undefs
* review styling mismatches
* rename `A0,1` to `SHA256_A0,1`
---------
Co-authored-by: CrackedPixel <5776225+CrackedPixel@users.noreply.github.com>
2025-10-15 19:07:41 +02:00
Jeffery Myers
7191749d66
[examples] Fix examples to work in MSVC ( #5267 )
...
* Fix warnings in many examples
Add examples to MSVC solution correctly
* fix CI error
---------
Co-authored-by: Ray <raysan5@gmail.com>
2025-10-15 19:02:52 +02:00
Arrangemonk
e3a562ab57
UpdateModelAnimation does matrixtranspose(matrixinvert) only once per bone instead of per vertex ( #5244 )
2025-10-15 19:00:24 +02:00
Jeffery Myers
aaf4c1d3ae
always forward declare the windows stuff, prevents failure of rgfw in GCC. ( #5269 )
2025-10-15 00:18:48 +02:00
Thomas Anderson
2d7b66dd37
change free to RL_FREE ( #5265 )
2025-10-13 22:15:20 +02:00
JohnnyCena123
6f584464b6
remove duplicate entry from keyMappingRGFW ( #5242 )
2025-10-08 15:04:29 +02:00
Ray
5dd97ecf2f
REVIEWED: TextToPascal(), fix https://github.com/raylibtech/rtools/issues/57
2025-10-07 19:42:05 +02:00
Maicon Santana
de50402dd5
Check if video mode is valid and rename to match with other methods ( #5235 )
2025-10-05 22:26:25 +02:00
pyrokn8
07aafdd585
Updated miniaudio.h - v0.11.23 ( #5234 )
...
Co-authored-by: pyrokn8 <202429796+pyrokn8@users.noreply.github.com>
2025-10-04 19:40:53 +02:00
JohnnyCena123
02b3e44f88
swap TraceLog to TRACELOG ( #5226 )
2025-10-02 14:13:07 +02:00
Ray
7e3b7cd349
REVIEWED: DrawLineDashed()
2025-10-02 13:38:13 +02:00
Ray
a0a0d4d5ad
Update rcore_desktop_win32.c
2025-10-02 13:05:42 +02:00
Luís Almeida
f680776941
feat:Added DrawLineDashed() and a new example explaining how to use this new function. ( #5222 )
2025-10-01 11:43:38 +02:00