Cameron Gutman
57418475ce
kmsdrm: Keep fd around if we can drop master
...
Modern kernels (v5.8+) allow non-root usage of drmDropMaster(), so
we can hold on to our fd after dropping master on it. This fixes
populating drm_fd in the KMSDRM SysWMinfo when using Vulkan.
Also add a missing error check for open() while we're here
2024-09-24 12:55:02 +03:00
Cameron Gutman
13f88df190
kmsdrm: Fix KMSDRM_Vulkan_CreateSurface() return value
2024-09-23 23:33:15 -05:00
Cameron Gutman
8f55f48337
kmsdrm: Move property initialization a bit further down
...
KMSDRM_GBMInit() must be called first to set drm_fd and gbm_dev.
2024-09-23 23:00:14 -05:00
Ryan C. Gordon
1ed3dac021
examples: Added renderer/14-viewport
...
(This intentionally skips a few example numbers, as I intend to fill in some
other topics before this, later.)
2024-09-23 14:16:32 -04:00
Ryan C. Gordon
e00ea27d25
examples/renderer/01-clear: No longer needs vsync.
...
This now chooses the next color based on time, so it won't go wild if the
framerate is unbounded.
2024-09-23 14:16:32 -04:00
Petar Popovic
004ac40226
Fix warning: no function prototype
2024-09-23 10:03:18 -07:00
Ethan Lee
4a3faf20ac
gpu: Replace high-level logs with SetError
2024-09-23 10:57:10 -04:00
Petar Popovic
043c876a15
Move default colorspace aliases into enum
2024-09-23 07:37:02 -07:00
mausimus
0685b96469
GPU: fix build when SDL_GPU_DISABLED is set
2024-09-23 08:09:17 -04:00
Ryan C. Gordon
e973b687cd
examples: Added renderer/11-color-mods
2024-09-23 01:21:40 -04:00
Susko3
0478a6ee3b
Move endian pixel format aliases into enum
...
Matches the same thing in `SDL_AudioFormat`.
2024-09-22 16:34:42 -07:00
Ryan C. Gordon
1828bde49f
examples/renderer/01-clear: Use the color-cycle code from testvulkan.c
...
(and testgpu_simple_clear.c, of course!)
2024-09-22 16:10:57 -04:00
Ryan C. Gordon
3bc2bd790c
build-web-examples.pl: Added a FIXME.
2024-09-22 10:35:59 -04:00
Ozkan Sezer
b736285053
examples/renderer/08-rotating-textures: Fix compiler warning on MSVC .
2024-09-22 12:02:50 +03:00
Ryan C. Gordon
37d62deca1
examples/renderer/10-geometry: Fixes and cleanups.
2024-09-22 01:15:19 -04:00
Ryan C. Gordon
0758b2a0c4
examples: Added renderer/10-geometry
2024-09-22 01:10:33 -04:00
Ryan C. Gordon
1a90e09262
examples: Added renderer/09-scaling-textures
2024-09-22 01:10:32 -04:00
Ryan C. Gordon
4fdeb6861b
examples: a few renderer fixes.
2024-09-22 01:10:32 -04:00
Ryan C. Gordon
66b92e95ac
examples: renamed renderer sources to match other example directories.
2024-09-22 01:10:32 -04:00
Ryan C. Gordon
ffcf372d27
examples: Added renderer/08-rotating-textures
2024-09-22 01:10:31 -04:00
Ryan C. Gordon
0c7334cce3
examples: Added renderer/07-streaming-textures
2024-09-22 01:10:31 -04:00
Ryan C. Gordon
2bd3d9cfb7
examples: Added renderer/06-textures
2024-09-22 01:10:30 -04:00
Ryan C. Gordon
9d0b3eded6
examples: added renderer/05-rectangles
2024-09-22 01:10:30 -04:00
Ryan C. Gordon
3413617cb6
examples: added renderer/04-points
2024-09-22 01:10:30 -04:00
Sam Lantinga
b0e528cc88
Switched ifdef from negative to positive
2024-09-21 20:12:54 -07:00
Caleb Cornett
97d1056e16
GPU: MSAA fixes ( #10917 )
2024-09-21 17:38:10 -05:00
Ozkan Sezer
254b36361e
Add SDL_PRILL? format specifiers specifically for long long type.
2024-09-21 23:03:50 +03:00
Sam Lantinga
6f80d47d64
Use hexidecimal code for ±
2024-09-21 10:43:34 -07:00
Petar Popovic
4392233007
Removed tabs from headers
2024-09-21 10:39:53 -07:00
Evan Hemsley
89c6bc5f50
Prefer Vulkan even on Windows ( #10912 )
2024-09-20 13:42:15 -07:00
Evan Hemsley
980b4ff6db
GPU: Vulkan descriptor management rewrite ( #10910 )
2024-09-20 12:55:39 -07:00
Frank Praznik
fcb8a2c016
wayland: Fix animated cursor timing
...
Adjust the frame timing so it will still advance if the frame callback fires faster than the frame duration.
2024-09-20 14:19:28 -04:00
Sam Lantinga
ea2e2e451d
Better fix for initializing Android environment variables
2024-09-20 11:09:48 -07:00
Sam Lantinga
095fb5f522
Fixed infinite recursion at startup on Android
2024-09-20 10:56:02 -07:00
Ozkan Sezer
88a01fbc96
testautomation_stdlib.c: fix -Wformat warnings from mingw with %lld/%llu
...
i.e.: unknown conversion type character 'l' in format
See https://github.com/libsdl-org/SDL/pull/10789#issuecomment-2354011906
2024-09-19 20:37:11 +03:00
Ryan C. Gordon
b4e2777820
examples/renderer/03-lines: Fix compiler warning on Visual Studio.
2024-09-19 13:31:24 -04:00
Ryan C. Gordon
2e3e5abd7d
examples/renderer/03-lines: use a gray background.
2024-09-19 12:58:37 -04:00
Frank Praznik
fd0ce75e2e
tests: Fix tests when run with the --high-pixel-density flag
...
Scales pointer coordinates where needed to fix the following tests when run with the --high-pixel-density flag:
- testaudio
- testaudiostreamdynamicresample
- testhittesting
- testintersections
- testmanymouse
- testoverlay
- testwm
2024-09-19 12:54:13 -04:00
Ryan C. Gordon
745d5e4991
examples/renderer/03-lines: Make this less obnoxious to look at.
2024-09-19 12:52:04 -04:00
Ryan C. Gordon
1b266ec13d
examples: added renderer/03-lines
2024-09-19 12:16:12 -04:00
Sam Lantinga
6771a6020d
testcamera: don't enable verbose logging
...
Fixes https://github.com/libsdl-org/SDL/issues/10541
2024-09-18 22:26:38 -07:00
T3hD0gg
594edb6bd2
Add Thrustmaster TMX VID & PID to wheel device list.
2024-09-18 22:19:54 -07:00
Sam Lantinga
34c6011360
Fixed Windows build
2024-09-18 14:55:51 -07:00
Sam Lantinga
d29a0e3f31
Fixed warning: no previous prototype for function
2024-09-18 14:34:14 -07:00
Sam Lantinga
7a924b36ae
compile_shaders.sh shouldn't be in the SDL framework
2024-09-18 14:31:00 -07:00
SDL Wiki Bot
1f727b61f3
Sync SDL3 wiki -> header
2024-09-18 21:04:36 +00:00
Sam Lantinga
398dff7c25
Added support for the HORI licensed Steam Controller
2024-09-18 14:08:32 -07:00
Sam Lantinga
481203c074
Fixed Xcode warnings
2024-09-18 13:20:53 -07:00
Ozkan Sezer
7edf7fad66
fix bool define when SDL_DEFINE_STDBOOL is defined:
...
it should be unsigned.
2024-09-18 12:17:22 -07:00
Ozkan Sezer
ff90570a3c
define SDL_DEFINE_STDBOOL for gcc < 3
2024-09-18 12:17:22 -07:00