Jonathan Marler
f61c2c504d
[rcore][win32] Adding native win32 backend ( #4869 )
...
* win32 backend
* [rcore][win32] use SwapBuffers instead of wglSwapLayerBuffers
I don't understand OpenGL well enough to know the difference between
SwapBuffers and wglSwapLayerBuffers but the former seems to double
my FPS (from 2000 to about 4000 in core_vr_simulator).
* [rcore][win32] stop lying to the OS about when our window is updated
Instead of calling BeginPaint/EndPaint in WM_PAINT which signals to the
OS that our window content is updated, now when we encounter the WM_PAINT
message instead we return back to the raylib application which will
trigger it to render a new frame. We've replaced the call to BeginPaint
and EndPaint with a call to ValidateRect in SwapBuffers, which, means
we're now correctly telling the OS when our window content is actually
up-to-date.
Note that this doesn't fix the window content not being updated during
a window resize/move beacuse thos have their own message loop which
doesn't return early when it's time to paint.
* [rcore][win32] fallback to finding functions from opengl32.dll
* [rcore][win32] fixes from review/for gcc
* [rcore][win32] incorporate style conventions
* [rcore][win32] workaround unused function error SetupFramebuffer
* [rcore][win32] re-enable sanitize flags check for MSAA_4X
* [rcore][win32] more style changes and remove old DPI cases
Added some more missing spaces after conditional statements. Also
made unsupported MSAA_4X an assert instead of an abort and also
removed dpi-aware cases for older OS's. More changes would be needed
to support those OS versions, namely, removing the dependency
on shcore.
* [rcore][win32] fixes for compling with w64devkit without -DUNICODE
* Update build.zig
* Update build.zig
---------
Co-authored-by: Ray <raysan5@gmail.com>
2025-08-31 12:13:21 +02:00
Ray
ecf032fe4f
REVIEW: Avoid warning on fgets() return value
2025-08-31 12:11:48 +02:00
Ray
edce3d41b2
REVERT: Making codepoints const, variable is used to generate list in case it was NULL
2025-08-31 12:11:03 +02:00
Ray
ecedf40da6
REVIEW: const for codepoints arrays passed to function #5159
2025-08-31 11:39:14 +02:00
wileyanderssen
fce888c0c0
changed function params formatting ( #5160 )
2025-08-31 11:34:39 +02:00
maiphi
d9cb078299
FindNearestConnectorMode: prefer mode with smallest number of unused pixels ( #5158 )
...
Co-authored-by: Philipp Maierhoefer <particle@maierhoefer.net>
2025-08-31 11:34:05 +02:00
Ray
bbf884d7b3
Merge branch 'master' of https://github.com/raysan5/raylib
2025-08-29 21:32:34 +02:00
Ray
f0e49787cd
minor tweak
2025-08-29 21:32:21 +02:00
JohnnyCena123
0e73e0ea64
reviewed ALL non-external files to follow raylib's convention of no spaces around / or * ( #5153 )
2025-08-29 14:53:16 +02:00
JohnnyCena123
481daf2423
remove extra backslash in fix_win32_compatibility.h ( #5148 )
2025-08-28 22:30:25 +02:00
JohnnyCena123
4a4997c615
fix unnecessary warnings in some files ( #5152 )
2025-08-28 22:28:56 +02:00
Ray
d2f6c4924c
ADDED: [rtext] LoadTextLines()/UnloadTextLines()
2025-08-26 10:17:33 +02:00
Ray
04a3ab0ca7
REVIEW: Added warning in case of no [rcore] backend defined
2025-08-24 11:23:15 +02:00
Ray
52980c947d
REVIEWED: [rtext] Provide more detailed info on glyphs failing to pack #5141
2025-08-24 11:07:55 +02:00
Siltnamis
3c9c66e72b
use RL_MALLOC in stb_truetype
2025-08-23 13:10:27 +03:00
Andreas Rossberg
2deae294c6
[raudio] Properly close FLAC in UnloadMusicStream
...
Fix raysan5/raylib#5131 .
2025-08-21 13:02:19 +02:00
Ray
99cb82a82c
REVIEWED: [rmodels] LoadGLFT(), avoid loading attributes already loaded, issue a warning. FIX : #4996
2025-08-20 16:39:45 +02:00
Ray
5b88e4fe5f
Merge pull request #5124 from JeffM2501/fix_win32_compatibility
...
[utility] Add helper header to fix compatibility with windows.h
2025-08-19 20:18:00 +02:00
Jeffery Myers
15baf176b2
Add a utility header to external that undefines the parts of windows that conflict with raylib, allowing raylib functions to run unimpeded
2025-08-19 10:39:38 -07:00
Jeffery Myers
572230c8ad
Initialize sound alias properties as if it was a new sound
2025-08-19 08:16:20 -07:00
Jan Beukes
8772b0287c
Fix SDL3 compilation error with gcc
2025-08-17 23:44:37 +02:00
λxy.x
16bd18070f
Fix SDL3 build if using package
2025-08-17 11:11:54 +03:00
Ray
0dc4ba53dc
Minor format tweak
2025-08-16 21:06:13 +02:00
Ray
e4dfb6dbb5
Update rl_gputex.h
2025-08-16 20:24:54 +02:00
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