SDL Wiki Bot
495e432fb9
Sync SDL3 wiki -> header
2024-03-14 22:41:24 +00:00
Semphris
70c2e15615
Add file dialogs
2024-03-14 15:40:25 -07:00
Sam Lantinga
6c11449cd4
Added a note for the SDL_CommonEvent type
2024-03-14 09:00:47 -07:00
Sam Lantinga
442073f379
Added missing reserved field in SDL_CameraDeviceEvent (thanks @Saalvage!)
2024-03-14 08:51:48 -07:00
Sam Lantinga
9bef331dc8
Note that SDL_UserEvent and SDL_Event type are intentionally Uint32
2024-03-14 08:49:02 -07:00
Sam Lantinga
3875ef4552
Removed duplicated line (thanks @sechshelme!)
...
Fixes https://github.com/libsdl-org/SDL/issues/9264
2024-03-13 13:47:32 -07:00
Sam Lantinga
efbbafb3f1
Re-added balls to the SDL joystick API
...
It turns out these were being used on Linux and at least one virtual driver was making use of them (thanks @mrfixit2001!)
2024-03-10 21:30:14 -07:00
Riccardo Marcangelo
6534029691
Add DualShock 3 HIDAPI support on Windows ( #9144 )
...
This adds HIDAPI support for DualShock 3 controllers on Windows, addressing the current absence of this feature in SDL. To utilize this functionality, the official Sony driver 'sixaxis.sys' must be installed. HID offers several advantages over DirectInput, including rumble support and the ability to control the LED lights that display the controller number.
2024-03-10 20:08:36 -07:00
Sam Lantinga
fde420a645
Revert "Added SDL_FLIP_DIAGONAL"
...
This reverts commit b9ab326982
.
@rainerdeyke pointed out:
"This commit is incorrect. Flipping both horizontally and vertically is not equivalent to flipping diagonally."
2024-03-10 15:20:36 -07:00
RPP-dev
b9ab326982
Added SDL_FLIP_DIAGONAL
...
Since SDL_RenderFlip is an enum, SDL_FLIP_HORIZONTAL and SDL_FLIP_VERTICAL can not be OR'ed to get the "SDL_FLIP_DIAGONAL".
Render code is actually able to perform these 3 kind of "flipping" so I just added a new enum called SDL_FLIP_DIAGONAL with the OR'ed value (3) so it can be used.
2024-03-10 09:27:14 -07:00
Tolik708
2a775cad6f
Named typedef-ed structs Gave name to structs that were defined like anonymous struct with name given by typedef. Example 'typedef struct {...} Foo;' -> 'typedef struct Foo {...} Foo;'
2024-03-10 09:04:18 -07:00
Sam Lantinga
37d066b99b
Clarify what pitch means (thanks @zlago!)
2024-03-10 09:02:59 -07:00
Ozkan Sezer
9e89f093d9
remove stale / wrong information from SDL_RWread() documentation
2024-03-08 18:55:19 +03:00
Sam Lantinga
790cd395f5
Make sure the type in the SDL_Event aligns properly across the union
2024-03-07 06:58:43 -08:00
Sam Lantinga
e9ab2d46de
Revert "Change `SDL_Keycode` type to an enum"
...
SDL_Keycode can actually be any printable character on the keyboard, so isn't limited to the enumerated values of SDL_KeyCode.
2024-03-07 06:58:43 -08:00
Sam Lantinga
33eaddc565
Cleaned up various type conversion issues
...
This makes sure SDL_PixelFormatEnum flows through the internal code correctly, as well as fixing a number of other minor issues.
2024-03-07 06:58:43 -08:00
Sam Lantinga
f53bdc9531
The pixel format in SDL_DisplayMode uses SDL_PixelFormatEnum
2024-03-07 03:39:06 -08:00
SDL Wiki Bot
59ab5c0824
Sync SDL3 wiki -> header
2024-03-07 00:20:27 +00:00
Sam Lantinga
c70710cde8
SDL_GetPixelFormatEnumForMasks() returns SDL_PixelFormatEnum
2024-03-06 16:19:08 -08:00
Susko3
722f4104bf
Use enums as types in SDL_*Event structures
...
The main `SDL_Event` union is not using the enum as
valid user events types are not in the enum.
2024-03-06 15:40:05 -08:00
Susko3
ce44eff3d2
Use `SDL_WindowFlags` in public headers
2024-03-06 15:08:12 -08:00
Susko3
4f58d18373
Typedef `SDL_WindowFlags`
...
Window flags were previously an enum with the same name.
See ebd7f9adbd
.
2024-03-06 15:08:12 -08:00
Susko3
424616e032
Use SDL_PixelFormatEnum as type
2024-03-06 15:02:13 -08:00
Susko3
f8cb3c742d
Change `SDL_Keycode` type to an enum
2024-03-06 12:17:53 -08:00
Susko3
f8844d387c
Use specific types in SDL_touch.h
...
Missed when picking 7ff34249c753122a2ba67e78aa6e9f9b56aa4a65 from https://github.com/libsdl-org/SDL/pull/9191 .
2024-03-06 10:35:20 -08:00
SDL Wiki Bot
2d0cd90171
Sync SDL3 wiki -> header
2024-03-06 17:52:26 +00:00
Sam Lantinga
860155680d
SDL_RegisterEvents() now returns 0 if it couldn't allocate any user events.
2024-03-06 09:51:15 -08:00
Sam Lantinga
95fbbc6f07
Fixed accidental use of tabs
2024-03-05 16:55:26 -08:00
Susko3
e268cdbec6
Use specific types in public headers ( #9205 )
...
Uses specific typedef'd types instead of generic integral types where applicable.
2024-03-05 16:52:15 -08:00
Sam Lantinga
db24560387
Additional colorspace clarification
...
Note that SDL_MATRIX_COEFFICIENTS_BT470BG is functionally equivalent to SDL_MATRIX_COEFFICIENTS_BT601
2024-03-05 16:47:36 -08:00
Sam Lantinga
b3858ec5f7
BT2020_CL is very different from BT2020_NCL, and not currently supported
2024-03-05 15:49:17 -08:00
Sam Lantinga
9db68f97f9
Reverted SDL_Vulkan_GetInstanceExtensions() API change
...
This function is commonly used with Vulkan structures that use uint32_t, so we should keep the Uint32 signature.
2024-03-05 13:39:42 -08:00
SDL Wiki Bot
0b4a195f4b
Sync SDL3 wiki -> header
2024-03-05 21:32:25 +00:00
Sylvain
cea717e5d3
Removed some uneeded 'unsigned': renderer.num_texture_format and SDL_Vulkan_GetInstanceExtensions() prototype
2024-03-05 13:31:28 -08:00
SDL Wiki Bot
ffef13e1e1
Sync SDL3 wiki -> header
2024-03-04 17:30:25 +00:00
Sam Lantinga
48471f7dbd
Added SDL_AddVulkanRenderSemaphores() for external synchronization with SDL rendering
2024-03-04 09:29:36 -08:00
Sam Lantinga
2c85052966
Removed unused headers from SDL_rect.h
...
Fixes https://github.com/libsdl-org/SDL/issues/8966
2024-03-03 11:33:59 -08:00
Susko3
86d36a2dc2
Add missing include
2024-03-03 09:37:59 -08:00
Nour Fouad
e524e545f2
Add vulkan to SDL_HINT_RENDER_DRIVER
2024-03-02 15:17:09 -08:00
SDL Wiki Bot
27389716ac
Sync SDL3 wiki -> header
2024-03-02 23:05:24 +00:00
Sam Lantinga
7f9ff6277c
Don't assume HDR headroom for HDR10 surfaces
...
Applications that support HDR will set the correct values for their content.
2024-03-02 15:02:17 -08:00
SDL Wiki Bot
8c015cd3b6
Sync SDL3 wiki -> header
2024-03-02 18:02:26 +00:00
Sam Lantinga
8d023f9869
Updated documentation for new property parameters
2024-03-02 09:56:29 -08:00
Sam Lantinga
f2cd361e25
testyuv: added validation of P010 YUV format
...
Also added conversion between RGB and P010, using XRGB2101010 as a bridging format in PQ space
2024-03-01 20:26:52 -08:00
Ryan C. Gordon
1e8b006d43
stdlib: qsort and bsearch changes.
...
- Always use internal qsort and bsearch implementation.
- add "_r" reentrant versions.
The reasons for always using the internal versions is that the C runtime
versions' callbacks are not mark STDCALL, so we would have add bridge
functions for them anyhow, The C runtime qsort_r/qsort_s have different
orders of arguments on different platforms, and most importantly: qsort()
isn't a stable sort, and isn't guaranteed to give the same ordering for
two objects marked as equal by the callback...as such, Visual Studio and
glibc can give different sort results for the same data set...in this
sense, having one piece of code shared on all platforms makes sense here,
for reliabillity.
bsearch does not have a standard _r version at all, and suffers from the
same SDLCALL concern. Since the code is simple and we would have to work
around the C runtime, it's easier to just go with the built-in function
and remove all the CMake C runtime tests.
Fixes #9159 .
2024-03-01 08:28:12 -05:00
Sam Lantinga
af58ed978e
Fixed the documentation for SDL_GetGamepadMappings()
2024-03-01 01:55:56 -08:00
SDL Wiki Bot
7ff9be7398
Sync SDL3 wiki -> header
2024-03-01 01:39:28 +00:00
Sam Lantinga
0454e1fdb4
Vulkan: added support for wrapping existing textures
2024-02-29 17:38:10 -08:00
SDL Wiki Bot
68588b232c
Sync SDL3 wiki -> header
2024-02-28 15:13:26 +00:00
Sam Lantinga
614630df69
Allow using an external Vulkan device with the vulkan renderer
2024-02-28 07:12:15 -08:00