Sam Lantinga
4f628b5b62
Renamed SDL_HINT_GDK_TEXTINPUT_DEFAULT to SDL_HINT_GDK_TEXTINPUT_DEFAULT_TEXT
2024-02-12 09:54:33 -08:00
Sam Lantinga
fd5d761128
Renamed SDL_HINT_DIRECTINPUT_ENABLED to SDL_HINT_JOYSTICK_DIRECTINPUT
2024-02-12 09:54:33 -08:00
Sam Lantinga
a5da7d0dd5
Renamed SDL_HINT_ALLOW_TOPMOST to SDL_HINT_WINDOW_ALLOW_TOPMOST
2024-02-12 09:54:33 -08:00
Sam Lantinga
ef8791cba8
Cleaned up and organized hint documentation
2024-02-12 09:54:33 -08:00
Sam Lantinga
9ce7fe2848
Removed SDL_HINT_ACCELEROMETER_AS_JOYSTICK
...
Sensors are a first-class object in SDL and we haven't gotten any feedback that this feature is useful these days.
Closes https://github.com/libsdl-org/SDL/pull/7879
2024-02-12 09:54:33 -08:00
Zack Middleton
5af7113842
Rename property define names to have a type suffix
...
Renamed the following property define names to have a type suffix to
match other property names.
SDL_PROP_TEXTURE_OPENGL_TEXTURE_TARGET (number)
SDL_PROP_TEXTURE_OPENGLES2_TEXTURE_TARGET (number)
SDL_PROP_WINDOW_CREATE_WAYLAND_SCALE_TO_DISPLAY (boolean)
SDL_PROP_WINDOW_RENDERER (pointer)
SDL_PROP_WINDOW_TEXTUREDATA (pointer)
2024-02-12 09:54:11 -08:00
Sam Lantinga
cacac6cc34
Updated structure and field names for consistency
...
Type names are camel case and field names are snake case except for fields ending in id, which are capitalized.
Fixes https://github.com/libsdl-org/SDL/issues/6955
2024-02-11 08:27:56 -08:00
Sam Lantinga
6f87973b9c
Added a reserved field to the SDL_Event structure
...
This guarantees 64-bit alignment for the timestamp
2024-02-11 08:27:56 -08:00
SDL Wiki Bot
432ce3f167
Sync SDL3 wiki -> header
2024-02-10 15:09:26 +00:00
Sam Lantinga
416803b03b
Clarify the lifetime of the shape surface in SDL_SetWindowShape()
2024-02-10 07:08:28 -08:00
Sam Lantinga
f95b7ee4da
Renamed SDL_HasWindowSurface to SDL_WindowHasSurface
...
Fixes https://github.com/libsdl-org/SDL/issues/9034
2024-02-09 17:42:18 -08:00
SDL Wiki Bot
1ec0e22bcd
Sync SDL3 wiki -> header
2024-02-10 00:38:20 +00:00
Sam Lantinga
1162097135
Added SDL_RenderViewportSet() to tell whether the viewport was previously set to a specific rectangle.
...
Fixes https://github.com/libsdl-org/SDL/issues/9029
2024-02-09 16:37:04 -08:00
SDL Wiki Bot
9ff8df932a
Sync SDL3 wiki -> header
2024-02-10 00:05:26 +00:00
Sam Lantinga
f6b92c9b88
Re-added a simplified version of SDL_SetWindowShape()
...
In order to handle mouse click transparency this needs to be implemented inside SDL
2024-02-09 16:04:46 -08:00
SDL Wiki Bot
1684032c17
Sync SDL3 wiki -> header
2024-02-08 18:39:20 +00:00
Sam Lantinga
4ce7ae31d4
Document that SDL_UpdateJoysticks() needs to be called to handle rumble processing
...
Related: https://github.com/libsdl-org/SDL/issues/4300
2024-02-08 10:43:00 -08:00
Sam Lantinga
1269590dfc
Clarified that SDL scancodes are unaffected by keyboard layout
2024-02-07 09:33:27 -08:00
Sam Lantinga
3158342441
Use SDL_Color for SDL_RenderGeometryRaw() and add SDL_RenderGeometryRawFloat()
...
Eventually we can re-add a fast path for that data down to the individual renderers. Setting color scale would still require converting to float, and most hardware accelerated renderers prefer to consume colors as float, so this requires some thought and performance testing.
Fixes https://github.com/libsdl-org/SDL/issues/9009
2024-02-06 18:16:41 -08:00
SDL Wiki Bot
ed86cec07f
Sync SDL3 wiki -> header
2024-02-06 23:41:23 +00:00
Sam Lantinga
2039c46d2c
Added support for creating an SDL texture from a CVPixelBufferRef
2024-02-06 15:40:47 -08:00
SDL Wiki Bot
451dc41427
Sync SDL3 wiki -> header
2024-02-06 10:49:24 +00:00
Sam Lantinga
30e176d6ba
Added HDR display properties and related event
...
Also added an HDR calibration stage to testcolorspace
2024-02-06 02:48:05 -08:00
Sam Lantinga
d4caef5b89
Generalize SDR white level handling into a color scale
...
This gives applications better control over how and when light levels are adjusted when working with HDR content and display.
2024-02-06 02:48:05 -08:00
Sam Lantinga
e74171b1ae
Added support for HDR10 video playback on direct3d11
...
Fixes https://github.com/libsdl-org/SDL/issues/8053
2024-02-05 09:45:39 -08:00
SDL Wiki Bot
a6374123c7
Sync SDL3 wiki -> header
2024-02-04 21:10:23 +00:00
Sam Lantinga
327b976bc4
SDL_COLORSPACE_JPEG is the default YUV colorspace
2024-02-04 13:09:40 -08:00
Sam Lantinga
89b9d6cbdc
SDL_RenderReadPixels() now returns a surface
...
Fixes https://github.com/libsdl-org/SDL/issues/8977
2024-02-03 11:49:15 -08:00
SDL Wiki Bot
ab571633d1
Sync SDL3 wiki -> header
2024-02-03 15:37:23 +00:00
Sam Lantinga
50a805cdd1
Use YUV colorspaces instead of a global YUV conversion mode
...
Fixes https://github.com/libsdl-org/SDL/issues/8669
2024-02-03 07:36:18 -08:00
SDL Wiki Bot
2819988f8b
Sync SDL3 wiki -> header
2024-02-03 04:40:24 +00:00
Sam Lantinga
a2c45f61bb
Updated scRGB render colorspace documentation
2024-02-02 20:38:48 -08:00
Sam Lantinga
25fd5da1a7
Removed maxCLL and maxFALL properties, moved them to SDL_image for HDR image loading
2024-02-02 15:13:09 -08:00
SDL Wiki Bot
943ab983cb
Sync SDL3 wiki -> header
2024-02-02 23:10:26 +00:00
Sam Lantinga
5d48f9a63a
Added SDL_CopyProperties()
2024-02-02 15:09:12 -08:00
SDL Wiki Bot
c007c7ed55
Sync SDL3 wiki -> header
2024-02-02 21:14:23 +00:00
Sam Lantinga
9591b2cfb4
Finalized the SDL render API colorspaces
...
The renderer will always use the sRGB colorspace for drawing, and will default to the sRGB output colorspace. If you want blending in linear space and HDR support, you can select the scRGB output colorspace, which is supported by the direct3d11 and direct3d12
2024-02-02 13:13:53 -08:00
Sam Lantinga
d04fea8b87
Even more miscellaneous gamepad buttons!
2024-02-01 20:34:05 -08:00
Sam Lantinga
cb70e972e3
Added miscellaneous gamepad buttons for additional macro buttons on some controllers
2024-02-01 20:15:01 -08:00
SDL Wiki Bot
dcfb069c75
Sync SDL3 wiki -> header
2024-02-01 20:18:29 +00:00
Sam Lantinga
19dde63e7c
Added a simple linear scale for tonemapped HDR to SDR surface conversion
2024-02-01 12:17:35 -08:00
Sam Lantinga
dd28ab0489
Added SDL_SetRenderDrawColorspace() and SDL_GetRenderDrawColorspace()
2024-02-01 12:17:35 -08:00
SDL Wiki Bot
a4969e393e
Sync SDL3 wiki -> header
2024-02-01 02:08:27 +00:00
Sam Lantinga
6f443e2aca
Added support for the scRGB colorspace on D3D11 and D3D12
2024-01-31 18:07:00 -08:00
Sam Lantinga
3c45544a14
Added a slow blit function to handle large pixel formats and colorspace conversion
2024-01-31 09:50:46 -08:00
Amun
4a759b340f
Fixes in SDL_ColorSpace (SDL_pixels.h)
2024-01-30 11:16:53 -08:00
SDL Wiki Bot
d15fb9e063
Sync SDL3 wiki -> header
2024-01-30 17:49:26 +00:00
Sam Lantinga
f257eb4481
Added the concept of colorspace to the SDL renderer
...
This allows color operations to happen in linear space between sRGB input and sRGB output. This is currently supported on the direct3d11, direct3d12 and opengl renderers.
This is a good resource on blending in linear space vs sRGB space:
https://blog.johnnovak.net/2016/09/21/what-every-coder-should-know-about-gamma/
Also added testcolorspace to verify colorspace changes
2024-01-30 09:48:02 -08:00
Sam Lantinga
554f0625d3
Renderer colors now have floating point precision
2024-01-30 09:48:02 -08:00
Sam Lantinga
61a3a163db
Fixed typo (thanks @Akaricchi!)
2024-01-29 18:48:41 -08:00