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 cf0d6fc664f1d0775c6b21ed79feaa1e38b2ddb4.
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