Ray
2e652bbef1
Merge pull request #5115 from maiconpintoabreu/web_resizable_window_mouse_issue
...
[rcore][web] Work around to fix mouse positioning on scaled window
2025-08-15 12:51:15 +02:00
Maicon Santana
73950befca
Work around to fix mouse positioning on scaled window
2025-08-15 10:57:44 +01:00
Ray
81615a91a6
Merge pull request #5111 from didas72/master
...
Adds more filters for conditional build of GetWindowHandle with GLFW
2025-08-14 21:13:27 +02:00
Diogo Diniz
3ef5ee878c
Adjusted formatting to comply with contribution guidelines
2025-08-14 19:58:22 +01:00
Ray
a9970484f3
Remove trailing spaces
2025-08-14 20:37:18 +02:00
Diogo Diniz
eae1296b08
Fixed bad macro logic
2025-08-14 18:56:31 +01:00
Diogo Diniz
59c979a59d
Added suggestions by planetis-m
2025-08-14 18:46:45 +01:00
Didas72
93f86fa074
fixes #5110
...
Adds more filters for conditional build of GetWindowHandle with glfw
2025-08-14 14:30:29 +01:00
Ray
74339d2008
REVIEWED: IsFileExtension()
2025-08-13 10:43:33 +02:00
Ray
cd1c206676
Update rl_gputex.h
2025-08-13 08:22:00 +02:00
Ray
76284f1a16
Corrected typo
2025-08-13 08:13:18 +02:00
Ray
dd19b8d2c2
REVIEWED: Requested window flags application after window initialization
2025-08-12 11:44:20 +02:00
Ray
195b968b86
Merge pull request #4837 from Andersama/support_all_window_flags_at_initialization
...
[rcore] Support window flags with initialization issues
2025-08-12 11:38:22 +02:00
Ray
95e4494cfe
ADDED: cursorLocked variable and review required code #4940 #4955
2025-08-12 11:33:58 +02:00
Ray
c4414fa1ed
Revert "Merge pull request #4945 from Moros1138/master"
...
This reverts commit bab234a160 , reversing
changes made to 13e384ce71 .
2025-08-12 10:58:56 +02:00
Ray
db2abfb9be
Merge branch 'master' into master
2025-08-12 10:28:52 +02:00
Ray
705ce45a33
FIX: Added callback broke keyboard input on web... #5107
2025-08-10 19:59:33 +02:00
Felipe Jorge
71b7734ce4
fix: QOA when using with LoadMusicStreamFromMemory, reduced the number of allocs and memcpy
2025-08-10 10:05:03 -03:00
Matthijs Kooijman
9582d25217
Fix backspace key in Rpi SSH keyboard
...
There was a typo in the generated keycode.
2025-08-09 21:04:09 +02:00
Ray
c6241b91a2
REVIEWED: IsFileExtension() to avoid other modules dependency #5071
2025-08-08 23:01:04 +02:00
Ray
c2f2878575
Merge pull request #5099 from JohnnyCena123/raysan-typo
...
fix typo in 'Ramon Santamaria'
2025-08-08 07:16:07 +02:00
JohnnyCena123
c25e9f641d
fix typo in 'Ramon Santamaria'
2025-08-08 03:04:33 +03:00
wileyanderssen
c6171d339c
removed unneeded comma
...
hope this gets merged
2025-08-07 19:55:46 +03:00
Ray
570082deba
WARNING: **NEW** raylib code CONVENTION: Comments do not end with '.'
2025-08-07 18:23:20 +02:00
Connor O'Connor
1c2ecfd6ab
fix: buffer overflow in jar_mod.h memcopy
2025-08-06 23:13:05 -04:00
Ray
095319602c
REVIEWED: Compule for OpenGL 1.1 #5088
2025-08-06 13:09:56 +02:00
Ray
cdbe9d75ef
Merge pull request #5085 from Not-Nik/culling_consistency
...
Make culling distances consistent across raylib
2025-08-05 00:45:47 +02:00
Nikolas
7267c1c8a1
Make culling distances consistent across raylib
2025-08-05 00:15:52 +02:00
Ray
e09c9ce281
Minor tweaks
2025-08-04 23:36:07 +02:00
Ray
b4ecfb648d
Merge pull request #5084 from kariem2k/fix_cmake_sdl3
...
Removed verbose logging on SDL3.
2025-08-03 19:53:53 +02:00
Karim Ahmed
603219d6d6
Removed verbose logging on SDL3. Happens every time the property is read!
2025-08-03 18:48:24 +01:00
Jeff Myers
ffe76a4b67
Don't Upload Meshes in LoadObj, LoadModel will upload them. None of the other interchange format readers upload
2025-08-02 14:58:05 -07:00
Ray
1c8eef9b0b
Update raylib and generate ARM64 libraries for Windows, Linux, macOS
2025-08-02 17:59:34 +02:00
Jeffery Myers
bf536d68e1
Make GetRenderWidth and GetREnderHeight return the FBO size if one is active.
2025-08-02 08:37:11 -07:00
Ray
234f4b2b10
Update raylib.h
2025-08-01 19:38:02 +02:00
Ray
43bc00379c
removed trailing spaces
2025-08-01 10:26:28 +02:00
Eike Decker
121c996c6e
fixing OBJ loading crash when there are no normals present
2025-08-01 08:49:48 +02:00
Ray
50acba3ce8
REVIEWED: rcore_web, cleaning and reorganizing
2025-07-30 17:31:49 +02:00
Ray
18ae6a377c
Merge pull request #4956 from Moros1138/consume-keyboard-events
...
[rcore][web] Add `EmscriptenKeyboardCallback()` to consume key events
2025-07-30 17:03:10 +02:00
Ray
12f0943bd9
Update rcore.c
2025-07-30 16:07:14 +02:00
Ray
b40e53f11c
Remove double line spacing
2025-07-30 16:07:08 +02:00
Ray
138010c1eb
Merge branch 'master' of https://github.com/raysan5/raylib
2025-07-28 23:38:00 +02:00
Ray
5ca6bff8ca
Update rl_gputex.h
2025-07-28 23:37:48 +02:00
lepasona
1da6b281de
Update glfw mappings.h
2025-07-27 07:37:07 +00:00
Ray
1fc0b4955f
REVIEWED: rl_gputex.h, added some info for future improvements
2025-07-26 13:36:03 +02:00
Ray
eb7f8912f8
Minor format tweaks
2025-07-26 12:50:29 +02:00
Ray
8343aed4f6
Avoid fatal errors on OBJ model loading
2025-07-26 12:50:12 +02:00
Ray
c9f9219fa6
REVIEWED: DRM cache buffers support #4988
2025-07-26 12:49:49 +02:00
Ray
5c680739bd
Removed platform-specific flag from config.h #4988
2025-07-26 12:49:03 +02:00
Ray
86d9afc10c
Merge pull request #4988 from rob-bits/master
...
[rcore][drm] Replace DRM swap buffer implementation with asynchronous page-flipping and triple framebuffer caching
2025-07-26 12:14:21 +02:00
Ray
715e174d13
Merge pull request #5062 from danilwhale/feat/get-proc-address
...
[rlgl] Add rlGetProcAddress
2025-07-26 12:07:43 +02:00
Ray
7262be85fd
Minor format tweaks
2025-07-26 12:06:24 +02:00
Ray
4da399141a
Merge pull request #5063 from kariem2k/fix_cmake_sdl3
...
Fixed: CMake support for SDL3
2025-07-26 11:49:05 +02:00
Ray
d7893141f3
REVIEWED: rl_gputex.h library to be usable standalone
2025-07-26 11:44:36 +02:00
Ray
94d8d7133b
Merge pull request #5045 from sleeptightAnsiC/fix_gputex_logging
...
[rl_gputex] fix: decouple logging and memory allocation from Raylib
2025-07-26 11:25:58 +02:00
Karim Ahmed
32960af1dc
Fixed:
...
Added CMake support for SDL3.
Now supports including SDL2 or SDL3 as a subdirectory within the project. The system will first check for SDL3, then SDL2. If neither is found, it will attempt find_package(SDL3), followed by find_package(SDL2). If all these checks fail, the process will terminate with an error.
2025-07-24 09:48:52 +01:00
danil
d6a897e551
[rlgl]: Add rlGetProcAddress
2025-07-23 21:41:45 +03:00
Ray
7b017b60d9
Move global variable to right code section
2025-07-21 10:57:21 +02:00
Didas72
36364192d5
Fixes GetWindowHandle returning a bad handle under Linux X11
2025-07-19 22:29:08 +01:00
Ray
9b6c09c32f
Merge pull request #5049 from wwderw/master
...
[build] Update Makefile
2025-07-19 12:29:39 +02:00
wwderw
0b125a5fd7
Update Makefile
...
Remove .bc file removal from clean shell for windows configuration.
2025-07-19 04:54:05 -05:00
Catania
3d93b30262
Update font load message
2025-07-18 15:20:38 +02:00
Ray
82b80a6998
Review formatting, avoid variable
2025-07-17 18:49:58 +02:00
Ray
71b302846a
Review formatting, avoid variable
2025-07-17 18:49:54 +02:00
Ray
8823aba9df
Update rprand.h
2025-07-17 18:49:34 +02:00
Ray
6b9a685bae
Merge pull request #5048 from veins1/patch-4
...
[raudio] Fix: music stopping early. Fix: GetMusicTimePlayed for short music
2025-07-17 18:44:29 +02:00
wwderw
093e5200d0
Update Makefile
...
Clean up library build for the web
2025-07-17 05:19:39 -05:00
veins1
0405de794a
Fix for music stopping too early
2025-07-16 14:22:57 +00:00
veins1
d03ac97eff
GetMusicTimePlayed fix for music shorter than buffer size
2025-07-16 14:18:38 +00:00
Romain Plumaugat
34af70866c
[rtextures] Fix ImageColorReplace() alpha issue #5009
2025-07-15 23:19:39 +02:00
Ray
e00c5eb8b1
Merge pull request #5043 from vinnyhorgan/master
...
Fix warning log macro in rlgl
2025-07-15 20:20:27 +02:00
Ray
cbea2ff502
Merge pull request #5046 from maiconpintoabreu/updatestream-music
...
[raudio] Prevent UpdateMusicStream to run without music playing
2025-07-15 20:18:46 +02:00
Maicon Santana
3320a2c837
Fix to prevent UpdateMusicStream to run without music playing
2025-07-15 19:07:15 +01:00
katonar
8388160c32
- fixing SUPPORT_DRM_CACHE define check at the end of InitPlatform()
2025-07-15 13:58:23 +02:00
sleeptightAnsiC
85bf04c7bf
[rl_gputex] fix: decouple logging and memory allocation from Raylib
...
- make sure that src/external/rl_gputex.h uses it's own macros
for printing warnings and allocating memory
- add few additional macros in order to decouple rl_gputex from headers
that are being included by Raylib (e.g. *_MEMSET, *_NULL and so on)
- make sure that rl_gputex uses RL_*ALLOC, TRACELOG and RLAPI macros
when (and only when) being included by src/rtextures.c
- replace LOG() and RL_GPUTEX_SHOW_LOG_INFO macros with: RL_GPUTEX_WARN
and RL_GPUTEX_SHOW_WARN_INFO (this is a breaking change, but it was
broken and unusable anyway, see:
https://github.com/raysan5/raylib/issues/5039#issuecomment-3065732596 )
- fixes issue all issues mentioned in:
https://github.com/raysan5/raylib/issues/5039#issuecomment-3065732596
- remove logging upon successfully saving a file; Raylib does this
anyway and we want rl_gputex to only print WARNings upon failures;
see: https://discord.com/channels/426912293134270465/541710686468702250/1394406734306480352
- add additional condition when saving a file; now checks for both
fwrite() and fclose() failures; before it would warn about both,
but only return result based on fclose()
- add some notes about the current state of compiling rl_gputex
without depending on Raylib (spoiler: it's still broken...)
- bump rl_gputex version to 1.1 since this is a potential breaking
change (only for people attempting to use it without Raylib)
Fixes: https://github.com/raysan5/raylib/issues/5039
Reference: https://discord.com/channels/426912293134270465/541710686468702250/1394403611852931255
2025-07-15 07:53:50 +02:00
backspaceoverload
44ebf32389
Fix HalfToFloat Mantissa hex value
2025-07-15 00:52:47 -03:00
Daniel Vincent Horgan
901afadbf1
fix warning log macro in rlgl
2025-07-14 15:36:02 +02:00
Jeremy Montgomery
fce3102f1c
Remove excess comments
2025-07-14 00:11:17 -05:00
sir-irk
9f03d7c426
fixing comments
2025-07-13 23:02:02 -05:00
sir-irk
0c69c43c3a
fix ImageDrawLineEx to be able to draw even numbered thicknesses
2025-07-13 22:37:41 -05:00
garrisonhh
8dbacafbe6
fix overflow in cast for ImageBlurGaussian
2025-07-10 12:48:29 -04:00
sleeptightAnsiC
930890555c
[glfw] update mappings.h using GenerateMappings.cmake
...
I did this with the intention of fixing
https://github.com/raysan5/raylib/issues/5027
but it's hard to tell if it will help in that case or not.
Anyway, bumping the header with mappings should be done once in a while.
I haven't found any Raylib script for doing this, so here's how I did it
step-by-step with CMake rule provided by GLFW (I'm on Linux, but this
should be similar on any other POSIX system):
```sh
$ git clone https://github.com/raysan5/raylib.git
$ cd raylib/src/external/glfw/
$ cmake -B ./build -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_DOCS=OFF -G "Unix Makefiles"
$ make -C ./build update_mappings
$ rm -fr ./build
```
then I checked, if any mappings were deleted (without updating) with
following shell one-liner:
```sh
# you must be at 'raylib/src/external/glfw/' when executing this
$ for i in $(git diff ./src/mappings.h | sed -n -e 's/^-"\([0-9a-z]*\),.*$/\1/p'); do grep <./src/mappings.h "$i" > /dev/null || echo "$i"; done;
```
which gave me the following IDs:
```txt
0300000066f700000500000000000000
030000000d0f00001600000000007803
03000000efbe0000edfe000000000000
03000000786901006e70000000000000
050000005e040000e002000030110000
03000000790000000600000010010000
030000000d0f00000d00000000010000
030000000d0f0000d800000072056800
03000000c0160000dc27000001010000
030000008916000000fd000024010000
```
I have checked all those IDs with `git log -p` against
https://github.com/mdqinc/SDL_GameControllerDB
and it seems that all of them were deleted by upstream (I was afraid that
maybe some mappings were added manually by a Raylib contributor and then
overwritten by my patch, but they weren't; All good!)
2025-07-10 01:37:25 +02:00
Ray
defbeee1a7
Merge pull request #5020 from Emil2010/master
...
update dr_libs
2025-07-08 21:45:17 +02:00
Ray
5957564983
Merge pull request #5026 from jonathandw743/sdlfix
...
fixed compile error for PLATFORM sdl
2025-07-08 21:43:30 +02:00
wwderw
8ef51850bf
Update raudio.c
...
Allow for the use of raudio stand alone
2025-07-08 08:51:33 -05:00
Amy Wilder
205b6a0926
Merge branch 'raysan5:master' into safety-comments
2025-07-07 21:52:54 -04:00
Amy Wilder
d4f09984ac
Add safety notes to 'Update_' functions
2025-07-07 21:51:27 -04:00
katonar
5b182139ae
- implementing Raylib coding convention
2025-07-07 17:55:32 +02:00
katonar
de62be0ec5
- created complier flag SUPPORT_DRM_CACHE, to enable triple buffered DRM caching
2025-07-07 17:28:23 +02:00
jonathandw743
79c29cbe24
fixed compile error for PLATFORM sdl
2025-07-06 11:36:44 +01:00
EmilSylveon
910f4083e1
update dr_libs
2025-07-05 00:53:01 +03:00
sir-irk
bee524e5e6
fixing offset for processing tangents for gltf loading
2025-07-01 13:23:05 -05:00
Ray
c35e136471
Merge branch 'master' of https://github.com/raysan5/raylib
2025-06-24 20:11:37 +02:00
Ray
44f670899c
REVIEWED: Avoid rtext dependency on rcore_desktop_sdl #4959
2025-06-24 20:11:35 +02:00
Diego Sanz
6266d0f419
Fix typo on config.h
2025-06-24 13:48:20 +02:00
Ray
b677376088
Delete shader in case compilation fails
2025-06-22 23:52:34 +02:00
Ray
1abac023bd
Update rcore.c
2025-06-20 23:34:41 +02:00
mlorenc
518ad8b018
Fix ScanDirectoryFilesRecursively
...
Fixes a regression since 5.5, where `ScanDirectoryFilesRecursively` no
longer does the "recursively" part due to `path` being `static`.
The issue was once already fixed in
5530a3ceb8
but recently made it back it in.
2025-06-20 01:39:01 +02:00
M374LX
96c898852c
Update RGFW
2025-06-12 19:23:12 -03:00
Ray
3e336e4470
Reviewed warning
2025-06-11 19:52:35 +02:00
Ray
59bcf680aa
Code gardening...
2025-06-07 20:14:24 +02:00
Ray
533c12c386
Small security tweaks
2025-06-07 15:33:35 +02:00
katonar
060bd787b1
Refactor: Replace DRM swap buffer implementation with asynchronous page-flipping and framebuffer caching
...
The original implementation created/destroyed framebuffers (FBs) per-frame, leading to kernel overhead and screen tearing. This commit replaces it with a different approach using:
- Asynchronous `drmModePageFlip()` with vblank sync
- Framebuffer caching to reduce repeated FB creation/removal operations
- Proper resource management through BO callbacks and buffer release synchronization
- Added error handling for busy displays, cache overflows, and flip failures
- Event-driven cleanup via page_flip_handler to prevent GPU/scanout conflicts
Co-authored-by: rob-bits
2025-06-05 15:50:07 +02:00
Ray
8d319b1004
Merge pull request #4983 from M374LX/miniaudio-update
...
Update miniaudio to v0.11.22
2025-06-02 18:52:59 +02:00
Ray
d218db9eec
Merge pull request #4982 from LainLayer/rgfw-timeout
...
Change `RGFW_window_eventWait` timeout to -1 to fix `EnableEventWaiting`
2025-06-02 18:50:11 +02:00
Ray
714de02a88
Merge pull request #4980 from williewillus/pr4980
...
[rshapes] Fix incorrect parameter names in DrawRectangleGradientEx
2025-06-02 18:37:34 +02:00
M374LX
bb5b5434a7
Update miniaudio to v0.11.22
2025-06-01 14:37:01 -03:00
alqeeu
51958d6e2c
changed RGFW_window_eventWait timeout to -1
2025-06-01 17:37:31 +03:00
Vincent Lee
19ae6f2c2d
[rshapes] Fix incorrect parameter names in DrawRectangleGradientEx
...
Examining the code shows that the rectangle is drawn winding counterclockwise, starting
with the top left. Therefore the colors used should be in the order: topLeft, bottomLeft,
bottomRight, topRight.
However, the variables actually being used are topLeft, bottomLeft, topRight,
bottomRight. I was confused by this as I was getting striping where I didn't expect any.
Put another way, the last two parameters are misnamed.
This diff swaps the parameter names and their usages. The result is that no runtime
behaviour changes: the same parameter order yields the same visual result both before and
after this change, but the parameter names now correctly reflect what they are actually
used for.
You can actually see this in the implementation of DrawRectangleGradientV, which
(correctly) passes top, bottom, bottom, top to DrawRectangleGradientEx.
2025-05-31 23:00:40 -07:00
jestarray
296e3af470
add const qualifier to ImageDrawTriangleFan and ImageDrawTriangleStrip arguments
2025-05-31 14:24:56 -07:00
M374LX
6eeaf1dd5b
Update RGFW to 1.7.5-dev
2025-05-31 16:43:25 -03:00
Ray
c1bb53738e
Merge pull request #4974 from M374LX/rgfw-escape-fix
...
RGFW: fix Escape always closing the window
2025-05-31 20:43:40 +02:00
Ray
9bf4388a4f
Merge pull request #4965 from M374LX/rgfw-update
...
Update RGFW to 1.7
2025-05-31 20:42:08 +02:00
Ray
20c0c92bdb
Merge pull request #4963 from meowstr/master
...
[rshapes] Add DrawEllipseV and DrawEllipseLinesV
2025-05-31 20:41:37 +02:00
M374LX
bc2b2864e0
RGFW: fix Escape always closing the window
2025-05-31 14:24:38 -03:00
M374LX
3418172617
Update comments
2025-05-29 23:01:48 -03:00
M374LX
a9525bfbc2
Update RGFW to 1.7
2025-05-29 16:03:39 -03:00
M374LX
16f398b464
Update comment (gamepad axes)
2025-05-29 15:01:01 -03:00
Meowster
6d5aedbd38
Add DrawEllipseV and DrawEllipseLinesV
2025-05-29 07:10:52 -04:00
Ray
913c236487
REVIEWED: MAX_GAMEPAD_AXES
2025-05-29 12:51:08 +02:00
Ray
341bfb22cc
REVIEWED: MAX_GAMEPAD_AXEX for consistency #4960
2025-05-29 12:25:00 +02:00
Ray
2afae1b3e1
Merge pull request #4962 from M374LX/rgfw-rctrl
...
RGFW backend: add missing Right Control key
2025-05-29 12:09:01 +02:00
M374LX
c0cf57f8f0
RGFW backend: add missing Right Control key
2025-05-28 22:38:16 -03:00
M374LX
299f5350a4
Remove unused variable
2025-05-28 19:49:57 -03:00
Moros Smith
f7fe8b88cb
add EmscriptenKeyboardCallback to consume key events
2025-05-28 17:47:18 -04:00
Ray
d7148f5f9d
REDESIGNED: Base64 encoding/decoding functions
...
Found some issues with output size when padding required, just re-implemented both functions from scratch.
2025-05-28 17:19:19 +02:00
Ray
5ddd13b775
REVIEWED: Hexadecimal formatting to be consistent
2025-05-28 17:18:02 +02:00
Moros Smith
8ef6473d33
return to ray's expected resize behavior
2025-05-25 18:58:35 -04:00
Moros Smith
cf2099f18a
the holy grail
2025-05-24 20:33:27 -04:00
Ray
afb52b19a4
WARNING: REDESIGNED: EncodeDataBase64(), NULL terminated string returned
...
Note that returned output size considers the NULL terminator as an additional byte.
2025-05-22 17:06:55 +02:00
Ray
21f0fe2a73
Removed some spaces
2025-05-21 19:06:04 +02:00
Ray
e3b9dbe75b
Merge pull request #4947 from padmadevd/master
...
[rcore] Fixed bug in hovering and input for android
2025-05-19 11:59:14 +02:00
Padmadev D
b6daa48a9c
Update rcore_android.c
...
corrected coding conventions.
2025-05-19 15:09:58 +05:30
Colby Newman
21e711b13f
Fix typo in mesh animNormals
2025-05-18 19:35:21 -04:00
Padmadev D
5da2d10118
Update rcore_android.c
...
Bug Fix Update
Code to Ignore Hovering Inputs Completely
2025-05-18 18:53:28 +05:30
Moros Smith
358917ffc3
trigger resize event when going into and out of fullscreen mode
2025-05-17 21:08:57 -04:00
Moros Smith
d0d42e78ea
inform glfw that a change of window size has taken place
2025-05-17 21:08:35 -04:00
Moros Smith
b618d7b35b
use parentElement's dimensions for width/height
2025-05-17 21:08:07 -04:00
Ray
8c99a508c6
REVIEWED: WindowSizeCallback(), GLFW
...
It is called on window minification and setting internal width/height to 0, that can break things
2025-05-14 23:49:24 +02:00
Ray
a51d334440
Merge branch 'master' of https://github.com/raysan5/raylib
2025-05-14 23:47:32 +02:00
Ray
9d4c31533d
Update rtext.c
2025-05-14 23:47:03 +02:00
Ray
ba31219141
Merge pull request #4937 from Bigfoot71/fix-gen-tangents
...
[rmodels] Fix and improve `GenMeshTangents`
2025-05-13 20:52:51 +02:00
Jeffery Myers
aa684a33de
make save file callback match const correctness of calling function
2025-05-12 19:54:34 -07:00
Bigfoot71
d135eef462
fix and improve GenMeshTangents
2025-05-12 23:16:06 +02:00
Ray
f7d03efb49
REVIEWED: DecodeDataBase64(), follow convention:
...
- All `char *` refer to text strings
- All `unsigned char *` refer to generic byte arrays
2025-05-11 11:05:25 +02:00
Ray
3083f0cd43
REVIEWED: SaveFileText(), const input text
2025-05-11 11:03:49 +02:00
Ray
693c9c292a
Formatting tweaks
2025-05-10 22:45:08 +02:00
Jeffery Myers
ebaa922f6b
Properly clean up the default font on unload, it may be reused if the window is created again
2025-05-08 09:57:31 -07:00
Ray
7e07278368
Update rprand.h
2025-05-08 17:06:29 +02:00
Karl Zylinski
a15548fb5a
Add normals to DrawSphereEx
2025-05-06 13:09:05 +02:00
Ray
3d6e24af4f
Merge pull request #4906 from Bigfoot71/fix-clip
...
[rlgl] Proposed fix for default near/far clipping range
2025-05-06 11:12:35 +02:00
Jeffery Myers
ee2ab11cc5
Use the animated verts and normals in GL 1.1 if they exist
2025-05-05 15:49:23 -07:00
Ray
31d63d08e2
Merge pull request #4922 from Bigfoot71/review-file-dir-2
...
[rcore] Some adjustments for `FilePathList`
2025-05-05 16:57:22 +02:00
Ray
a7ad2d1965
Merge pull request #4918 from JeffM2501/default_font_image_leaks
...
[rText] Fix issues with default font being used before InitWindow in the image API.
2025-05-05 12:06:55 +02:00
Jeffery Myers
e53a43b7b5
Assign meshes without bone weights to the bone they are attached to so they animate.
2025-05-04 17:32:37 -07:00
Bigfoot71
38aec920b5
makes path static in ScanDirectoryFilesRecursively
2025-05-04 14:47:52 +02:00
Bigfoot71
03988d2ce8
added a NULL check in UnloadDirectoryFiles
2025-05-04 14:46:39 +02:00
Le Juez Victor
c087144385
Merge branch 'raysan5:master' into fix-clip
2025-05-04 12:29:19 +02:00
Jeffery Myers
94c5de33a0
Make the default font loadable before InitWindow, for use with the image API.
...
Make the default font loader early out if we have already loaded parts of it, so we don't leak memory
2025-04-30 17:56:30 -07:00
Ray
1ec281e86f
Merge pull request #4914 from Servall4/master
...
[raudio] fix: GetMusicTimePlayed returns incorrect time after restarting a paused track
2025-04-28 23:13:31 +02:00
Duy Tran
f0de896f36
cmake: replace custom variable with built-in one
2025-04-28 11:57:53 -04:00
Ivan Ugryumov
ec5ce8c7fe
Update raudio.c
2025-04-28 14:29:51 +03:00
Gavin Rohrer
10478ff756
Revert GLFW_SCALE_FRAMEBUFFER to pre GLFW 4.3 behavior
2025-04-25 14:32:02 -04:00
Le Juez Victor
461c9c9d90
review tabs
2025-04-22 15:02:09 +02:00
Le Juez Victor
a7333a9dae
review near/far
2025-04-22 15:00:54 +02:00
Jeffery Myers
0f6b9ee738
format math the way ray likes it
2025-04-18 07:27:20 -07:00
Ray
b185f482d0
Merge pull request #4896 from mUnicorn/fix_bones_animation_scale
...
[rmodels] Fix bones animation scale
2025-04-18 10:46:00 +02:00
Ray
73030e02d4
Merge pull request #4895 from AndrewHamel111/descriptive-window-flag-warning
...
Add Warning to direct users to appropriate WindowState / ConfigFlag function
2025-04-18 10:43:24 +02:00
Jeffery Myers
5185d4c427
use the device channels and sample size when computing the default buffer size.
2025-04-16 18:13:41 -07:00
d.isakov
42a40b3920
move first mesh bones calculation under check for its presense
2025-04-16 08:04:58 +02:00
d.isakov
b4f1ff9a00
#4888 fix UpdateModelAnimationBones scale transform
2025-04-16 07:49:26 +02:00
AndrewHamel111
fdb92b373b
Warning to direct users to appropriate function
2025-04-15 21:08:35 -04:00
Ray
5b940692ea
REVIEWED: ExportFontAsCode() not checking isGpuReady #4894
2025-04-15 13:09:44 +02:00
Ray
80fcca4155
Update rcore_desktop_glfw.c
2025-04-14 12:37:06 +02:00
Ray
cc5739a6d7
REVIEWED: Some PRs formating
2025-04-13 20:55:38 +02:00
Jeffery Myers
60eb3a14d7
Only scale the screenshot by the DPI scale if we are doing automatic High DPI scaling, otherwise the native resolution is correct.
2025-04-10 13:59:09 -07:00
Eike Decker
1c4aa1378f
[rcore][SDL2] First touch position is overwritten with mouse pos
...
I believe it makes sense to only do this when there are no known
touch points. I am not even sure if this should be done at all.
See https://github.com/raysan5/raylib/issues/4872 for more information.
2025-04-01 23:10:19 +02:00
Ray
1a67dcb578
REVIEWED: RGB order on SDL3 #3568
2025-04-01 01:26:51 +02:00
Ray
9a049d1d27
Merge pull request #4859 from MikiZX1/master
...
Update rcore_desktop_sdl.c
2025-03-28 18:03:32 +01:00
Jonathan Marler
af16f7823a
Improve description of RestoreWindow
...
Restore window currently says it sets the window state to:
"not minimized/maximized"
However, if a window is maximized and then minimized, it's typical that
it would restore back to being maximized, which is what seems to happen
from my testing. I've reworded the description to better reflect
this behavior.
2025-03-28 10:39:22 -06:00
MikiZX1
55c6864092
Update rcore_desktop_sdl.c
...
raylib app crashing when started and a gamepad is already connected to the PC (even if the gamepad is not used in the app). I only tested this with a gamepad that has a layout which is not recognized. Using SDL3 as backend.
2025-03-26 14:06:58 +01:00
Ray
3d83c1c796
Format tweak
2025-03-25 19:27:55 +01:00
Ray
909c83fd4a
Avoid path filtering on TakeScreenshot()
2025-03-25 16:22:46 +01:00
Ray
32c8f396c2
Merge branch 'master' of https://github.com/raysan5/raylib
2025-03-25 16:21:53 +01:00
Ray
63e608d485
comment tweak
2025-03-24 15:07:36 +01:00
sleeptightAnsiC
8e9c3ceb57
[rcore] fix: TRACELOG upon successfully changing directory
...
InitWindow() prints CWD during initialization,
but ChangeDirectory() does not, which is quite confusing when you start
messing with CWD. Now said function should log similar message.
2025-03-22 21:20:17 +01:00
Ray
46cd07d2c7
WARNING: REVERTED CHANGE THAT BROKE BATCHING!!! #4849
...
I'm sorry... I did not detect this change was breaking batching... :(
2025-03-21 17:17:45 +01:00
Ray
266fba1111
Minor tweaks
2025-03-21 17:07:55 +01:00
Myrddin Krustowski
589ad0a33d
Add early return to circle sector functions when angles are equal.
...
Prevents unnecessary work and division by zero (when segments=0) in DrawCircleSector/DrawCircleSectorLines when startAngle equals endAngle, matching existing behavior in DrawRing/DrawRingLines.
2025-03-18 11:51:58 +02:00
Ray
2f63a15630
Merge pull request #4836 from JeffM2501/unscale_on_resize
...
[rcore] Correctly handle window size on resize in auto-scaled HIGHDPI environment
2025-03-14 17:15:14 +01:00
Jeffery Myers
d56ab670c3
spaces not tabs
2025-03-14 08:18:26 -07:00
Ray
cb830bed72
Increased depth size and clip distances to avoid z-fighting issues
2025-03-13 16:34:39 +01:00
Ray
d0e638cc31
REVIEWED: Platform DRM messages...
2025-03-13 11:42:16 +01:00
Alex Anderson
99a9ecfaac
[rcore] Support window flags with initialization issues
...
This may not be the correct approach, however this appears to work. The idea is that before modifying `CORE.Window.flags` when first creating the window we keep a copy of the flags in order to call `SetWindowState` after initialization has completed, which should behave as if `MaximizeWindow` or `MinimizeWindow`, or conceptually any other flag modifying function were called after `InitWindow`.
This pull request only performs this for the windows platform, modify as needed in the switch statement at the end for others.
2025-03-12 14:56:02 -07:00
Jeffery Myers
4bed3741c1
Unscale the window size on resize if we are doing automatic HighDPI scaling.
2025-03-12 14:16:50 -07:00
Ray
749a512f13
REVIEWED: ScanDirectoryFiles*() #4833
2025-03-12 12:44:40 +01:00
Ray
654d5c80c2
Merge pull request #4833 from MykBamberg/master
...
[rcore] Use snprintf to prevent buffer overflow in path construction
2025-03-12 12:40:25 +01:00
Nia Nightglow
fffbbad2f7
Guard against DEBUG Redefinition
...
Undefine DEBUG to avoid external redefinition
warnings/conflicts. This is probably a common
definition for many external build systems'
debug configurations.
This ensures raylib will not emit
a warning about the DEBUG definition being
redefined in external build systems.
2025-03-12 00:13:01 -05:00
MykBamberg
daa2921476
[rcore] Use snprintf to prevent buffer overflow in path construction
2025-03-12 01:38:39 +01:00
Ray
b80250bee4
Merge pull request #4807 from RicoP/RicoP/sinfl_bsr
...
[rcore] sinfl_bsr fix for TCC
2025-03-11 08:32:32 +01:00