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`.
před 1 měsícem
Ray
5025009860
REVIEWED: Make sure all variables are initialized on definition, prioritize one line per variable definitions
před 1 měsícem
Ray
c96669e123
REVIEWED: Webpage reference comments starting with `REF:`, more consistent with `TODO:` and `NOTE:` comments
před 1 měsícem
Ray
9c04b1de82
REVIEWED: Store canvas name id at platform initialization
Useful to support multiple canvases running different wasm instances in same webpage
před 1 měsícem
Ray
b465b4e2ea
RENAMED: Variable names for consistency, `textLength` (length in bytes) vs `textSize` (measure in pixels)
před 1 měsícem
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
před 1 měsícem
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>
před 1 měsícem
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)
před 1 měsícem
Ray
bc2057345b
REVIEWED: `GetRandomValue()`, explained the new approach to get more uniform random values range
před 1 měsícem
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
před 1 měsícem
Ray
3adfde42f7
REVIEWED: `rlLoadTeexture()`, max mipmap levels to use #5400
před 1 měsícem
Ray
91ac3cc707
FIX: `LoadRandomSequence()`, using `GetRandomValue()` #5393
před 1 měsícem
Gregory Mitchell
be6007be93
fix: sha1 computation on messages longer than 31 bytes ( #5397 )
před 1 měsícem
Ray
8115b7e922
Update rmodels.c
před 1 měsícem
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
před 1 měsícem
Ray
f9899a7182
Reviewed code formating
před 1 měsícem
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
před 1 měsícem
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
před 2 měsíci
Connor O'Connor
944567651c
replace sprintf with snprintf ( #5382 )
před 2 měsíci
Connor O'Connor
1bbc8682f4
Fixed some typos and mispellings ( #5381 )
Specifically "occured" -> "occurred"
před 2 měsíci
Ray
4724f7cf1b
REVIEWED: Comments for `UpdateSound()` specifying expected data format #5350
před 2 měsíci
Ray
a568506265
REVIEWED: External libraries `sdefl` and `sinfl` to address #5367
před 2 měsíci
Ray
ebce9fa97a
Update rcore_memory.c
před 2 měsíci
Ray
18e1ec504f
Updated example
před 2 měsíci
Ray
8f3cabcf76
Update rcore.c
před 2 měsíci
Ray
47a8b554bc
**NEW**: `PLATFORM_MEMORY` backend
New platform backend for software rendering directly on RAM memory buffer
před 2 měsíci
Ray
bd36610f91
Some formatting
před 2 měsíci
Ray
7e3d6cbfa8
Update rcore.c
před 2 měsíci
Ray
17dc2bb474
Update rcore.c
před 2 měsíci
Ray
aaa893f668
Update rcore.c
před 2 měsíci
Ray
e1b9857b14
Some TODOs and format reviews
před 2 měsíci
Ray
f1719480e0
Minor format tweaks
před 2 měsíci
Ray
6c3ef8d9b4
Remove trailing spaces
před 2 měsíci
Jeffery Myers
90af210712
include malloc.h so the win32 platform can build in MSVC ( #5365 )
před 2 měsíci
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
před 2 měsíci
Ray
d26435703f
Update rcore_desktop_win32.c
před 2 měsíci
Ray
265fa7833c
Update rtext.c
před 2 měsíci
Ray
f21c1cc6ae
Update rtext.c
před 2 měsíci
Ray
ec828071ef
Update rtext.c
před 2 měsíci
Adi Čaušević
e2233acdb0
feat: Optimize ImageClearBackground and ImageDrawRectangleRec with doubling strategy ( #5363 )
před 2 měsíci
Robin ❤️
3f92c396a0
Fixed typo ( #5364 )
před 2 měsíci
Ray
57e22d5fa0
Update rtext.c
před 2 měsíci
Ray
86e00bde65
Update rcore_desktop_sdl.c
před 2 měsíci
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.
před 2 měsíci
Serhii Zasenko
be9a24e68c
Fix controller not available right after win init ( #5358 )
- Fix IsGamepadAvailable() returns false for an available controller immediately after window initialization
před 2 měsíci
Ray
4dbe04b250
Update config.h
před 2 měsíci
Ray
8ae2c9cf5f
FIX: `LoadFontDataBDF()` #5346
před 2 měsíci
Ray
7f82da0031
Update rlsw.h
před 2 měsíci
Ray
fcaea5b1a1
Remove trailing spaces
před 2 měsíci
Ray
4e8b087ffe
REVIEWED: `ComputeSHA256()`
před 2 měsíci