Commit Graph

9638 Commits

Author SHA1 Message Date
Ray
528caf8b9d Added some libraries 2026-03-18 16:21:14 +01:00
Ray
85df4e7de5 REVIEWED: rlsw, use provided library information 2026-03-18 13:31:09 +01:00
Ray
f23319db3c Update ROADMAP.md 2026-03-18 13:29:51 +01:00
Ray
29e4b77580 RENAMED: rl_gputex to rltexgpu 2026-03-18 13:29:36 +01:00
Ray
2c39703d13 RENAMED: rl_gputex to rltexgpu 2026-03-18 13:28:45 +01:00
Le Juez Victor
d657e86043 [rlsw] Fix typos, update build scripts, and align style (#5669)
* fix typo that appeared during re-format

* fix build scripts for `GRAPHICS_API_OPENGL_SOFTWARE`

* consistency tweak
2026-03-17 20:01:45 +01:00
Ray
0de2e8092b REVIEWED: GetTime(), make sure division is with doubles #5668 2026-03-17 19:38:29 +01:00
Ray
48a34d63ed Update rlsw.h 2026-03-17 18:35:33 +01:00
Ray
fbce5e7541 Bump rlgl version to 6.0, after the low-level shaders API redesign, aligned with raylib 6.0 2026-03-17 18:33:53 +01:00
Ray
18756bb79d REVIEWED: Software renderer flag, renamed to GRAPHICS_API_OPENGL_SOFTWARE
Dropped the `11` relative to OpenGL 1.1 because latest `rlsw 1.5` also includes support for FBOs and could potentially implemented other higher level features in the feature, discerning from OpenGL 1.1 limitations
2026-03-17 18:33:15 +01:00
Ray
6ddf9a1885 Code review, format tweaks, defined version to 1.5 2026-03-17 18:30:48 +01:00
Le Juez Victor
e7d999e3c7 [rlsw] RenderTexture support (#5655)
* review texture formats
Added support for `R3G3B2`, `R5G6B5`, `R4G4B4A4` and `R5G5B5A1`
Added depth formats

* use of textures for the framebuffer
- Framebuffers can now use all texture types that are already available.
- The 24-bit depth format has been removed as it is no longer needed.
- Framebuffer formats are still defined at compile time.
- The allocated texture size is now preserved, which avoids frequent reallocations when resizing framebuffers and will allow the use of `glTexSubImage2D`.

* review framebuffer blit/copy
This greatly simplifies the framebuffer blit/copy logic while now supporting all pixel formats. It is slightly slower in debug builds, but this path is mainly kept for compatibility anyway. The `copy_fast` version is still used for the "normal" cases when presenting to the screen.

* review pixel get/set
less ops for certain formats + fixes

* fix depth write

* texture read/write cleanup + tweaks
I made the  pointers parameters `restrict` for reading/writing textures, which resulted in a slight improvement.
And I reviewed the `static inline` statements, which could potentially bias the compiler; no difference, but it's cleaner.

* style tweaks

* review uint8_t <-> float conversion

* added a reusable object pool system
will allow management of both textures and framebuffers
added support for `glTexSubImage2D`
added handling of 'GL_OUT_OF_MEMORY' errors
removed the default internal texture (unused)

* added FBO API + refactored rasterizer dispatch logic

* fix ndc projection + review presentation
and rename rlsw's resize/copy/blit

* add `glRenderbufferStorage` binding
+ tweaks and fixes

* fix quad sorting + simplify quad rasterization part

* fix line shaking issue

* support of `GL_DRAW_FRAMEBUFFER_BINDING`

* update rlgl - support of rlsw's framebuffers

* fix pixel origin in line rasterization
my bad, an oversight in my previous fix.
This offset should have been moved here rather than per pixel during truncation.

* style tweaks

* fix vla issue with msvc - fill depth / fill color
2026-03-17 17:50:32 +01:00
Ray
93be463322 Added missing resource to audio_module_playing example #5664 2026-03-17 08:13:00 +01:00
Ray
5cd7202777 Update models_rlgl_solar_system.c 2026-03-17 08:12:15 +01:00
Ray
22e1e86c52 Update raylib.vcxproj.filters 2026-03-17 08:12:09 +01:00
Ray
1eea511070 Remove trailing spaces 2026-03-16 17:51:53 +01:00
Ray
e0d3037e15 Update raylib.h 2026-03-16 17:51:44 +01:00
Ray
483d687900 Updated examples versions, validated with REXM 2026-03-16 17:19:27 +01:00
Ray
7401214e92 Update audio_stream_callback.c 2026-03-16 17:14:53 +01:00
Ray
d2be4ac2c9 Update CHANGELOG 2026-03-16 17:04:36 +01:00
Ray
19ec2588be Update Makefiles for emsdk version 5.0.x, using required node 22.16.0 and Python 3.13.3 2026-03-16 17:04:30 +01:00
Ray
e2aed43410 Update examples version to latest raylib 6.0 2026-03-16 17:03:02 +01:00
Ray
4a16dc9b09 Update build_webassembly.yml 2026-03-16 17:01:26 +01:00
Maicon Santana
ceeaf57a8b [CHANGELOG] fix github name (#5663)
Just for consistency, changing @Ray to @raysan5
2026-03-16 09:24:33 +01:00
Thomas Anderson
dfc3f58a06 fixed web platform resize events (#5662) 2026-03-15 23:26:29 +01:00
Thomas Anderson
26f329a5e7 fixed copy paste error in makefiles (#5660) 2026-03-15 20:40:26 +01:00
Ray
1d9e24eb58 REVIEWED: GetTime(), make it consistent between platforms, consider window initialization base time 2026-03-15 20:39:57 +01:00
Soma Mizobuchi
29280971be rcore_platform_sdl: Fix GetTime() resolution for sdl (#5653)
`SDL_GetTicks()` only has millisecond resolution so switched to
`SLD_GetPerformanceCounter()` combined with
`SDL_GetPerformanceFrequency()` which should allow more granular timing

Fix: remove intermediate  variable

Remove second cast
2026-03-15 20:31:18 +01:00
Thomas Anderson
fd017c0b2d fixed issue with mouse modes (#5659) 2026-03-15 20:25:31 +01:00
Ray
fbec6b0593 ADDED: Most relevant changes for raylib 6.0 2026-03-15 19:17:47 +01:00
Ray
8395374e3d Update HISTORY.md 2026-03-15 19:17:03 +01:00
Krzysztof Szenk
116191fd80 LibraryConfigurations.cmake: exchanged MATCHES -> STREQUAL in platform choosing if-statements (#5654)
* RGFW also requires RGBA8 images as window icons, as raylib already reports in raylib.h

* LibraryConfigurations.cmake: exchanged MATCHES -> STREQUAL in platform choosing if-statements
2026-03-15 08:48:55 +01:00
Ray
a6d5a7ffbc Update GitHub usernames for contributors 2026-03-13 19:44:06 +01:00
Ray
f89d38b086 Resolveed conflicts 2026-03-13 18:55:36 +01:00
ghera
38ed50c07b [rcore][android] Fix CMake shared build and improve --wrap WARNING docs (#5646) 2026-03-13 18:53:39 +01:00
Wertual08
4b9d802d4e Adapt build.zig to redesigned raylib build features config system (#5645) 2026-03-13 18:53:11 +01:00
dan-hoang
70cb8d15e0 [examples] Add audio_stream_callback (#5638)
* Add audio_raw_stream_callback.c

* Update audio_raw_stream_callback.c to more closely follow raylib coding conventions

* Remove spaces before asterisks in comments in audio_raw_stream_callback.c

* Put SetTargetFPS(30) before while(!WindowShouldClose()) in audio_raw_stream_callback.c

* Add audio_stream_callback.c

* Delete examples/audio/audio_raw_stream_callback.c

* Delete examples/audio/audio_raw_stream_callback.png

* Update audio_raw_stream.c to more closely follow raylib coding conventions

Drawing code wasn't tabbed in

* Remove screenshot code in audio_stream_callback.c

* Update raylib version and copyright year in audio_raw_stream.c

* Update audio_stream_callback.c

Used if instead of switch to compact code; seemed more readable in this case.
2026-03-13 18:51:49 +01:00
Ray
7763da41d7 Merge branch 'master' of https://github.com/raysan5/raylib 2026-03-13 18:50:37 +01:00
Ray
6ba6df3af3 Remove trailing spaces 2026-03-13 18:50:26 +01:00
Ray
7b9a2a4145 Update HISTORY.md 2026-03-13 18:49:57 +01:00
Jack
f83590aa37 Update BINDINGS.md (#5648) 2026-03-13 07:30:48 +01:00
Joel Torres
c5712db1e0 Update raylib-odin binding license (#5647) 2026-03-13 07:30:05 +01:00
Thomas Anderson
f9ea607385 fix error in textinsert, found by github user chrg127 (#5644) 2026-03-12 11:38:06 +01:00
Thomas Prowse
8a93587eaa Fix raycasting logic in models_basic_voxel.c (#5643)
The original logic iterated through the world and broke at the first found voxel that intersected the ray. This broke in some cases, removing a voxel out of view. I changed the algorithm to track the closest found voxel, and remove it at the end of the loop if one was found.
2026-03-12 11:36:53 +01:00
Thomas Anderson
64e8bfcfb6 remove path override/change for linux (#5641) 2026-03-12 11:35:48 +01:00
Thomas Anderson
4e360c97f4 remove duplicate line in makefile (#5640) 2026-03-12 11:34:38 +01:00
dan-hoang
ee4f4a29c2 [examples] Update audio_raw_stream.c (#5637)
* Update audio_raw_stream.c

* Update audio_raw_stream.c to more closely follow raylib coding conventions

* Update audio_raw_stream.c to more closely follow raylib coding conventions

I accidentally put the file in the wrong folder.

* Delete examples/audio_raw_stream.c

* Remove spaces before asterisks in comments in audio_raw_stream.c

* Put SetTargetFPS(30) before while (!WindowShouldClose()) in audio_raw_stream.c
2026-03-12 11:33:47 +01:00
Thomas Prowse
6cebf63cba Change GetRenderWidth() to GetScreenWidth() for consistency (#5635) 2026-03-11 00:21:53 +01:00
Thomas Anderson
7b1096dc53 [raylib.h] fix audio pan comment (#5633)
* fix audio pan comment -- found by a.b.c.d.a.b.c.d

* rlparser: update raylib_api.* by CI

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-10 09:51:12 +01:00
Ray
e40ddfabbb **WARNING: BREAKING:** REDESIGNED: rlgl shader loading API function names for more consistency #5631
ADDED: `rlUnloadShader()` to unload shaders (that function was missing and compute shaders leak memory)
RENAMED: `rlCompileShader()` to p `rlLoadShader()` to be consistent with `rlUnloadShader()`
RENAMED: `rlLoadShaderCode()` to `rlLoadShaderProgram()`, more descriptive of return
RENAMED: `rlLoadShaderProgram()` to `rlLoadShaderProgramEx()`
RENAMED: `rlLoadComputeShaderProgram()` to `rlLoadShaderProgramCompute()`
RENAMED: Some functions parameters for consistency
2026-03-09 14:23:54 +01:00