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
SDL Wiki Bot
7fbd85ad5c
Sync SDL3 wiki -> header
2024-01-29 02:25:21 +00:00
Sam Lantinga
61b5c38e6e
Added the initial concept of colorspace to SDL
2024-01-28 18:24:39 -08:00
SDL Wiki Bot
00a8ca403e
Sync SDL3 wiki -> header
2024-01-28 18:32:23 +00:00
Frank Praznik
5b8ca05f1a
wayland: Add a forced screen space scaling mode
...
Add a mode that forces Wayland windows to output with scaling that forces 1:1 pixel mapping.
This is intended to allow legacy applications to be displayed without desktop scaling being applied, and may have issues with some display configurations, as this forces the window to behave in a way that Wayland desktops were not designed to accommodate (rounding errors can result from certain combinations of window/scale values, the window may be unusably small, jump in size at times, or appear to be larger than the desktop space, and cursor precision may be reduced).
Windows flagged as DPI-aware are not affected by this.
The automated video test suite passes with the hint turned on.
2024-01-28 13:31:42 -05:00
Sam Lantinga
12bdb2b4d0
Added the environment variable SDL_LOGGING to control default log output
2024-01-27 19:30:22 -08:00
Sam Lantinga
a7a98d8bbb
Document that the default log priority is error, not critical
2024-01-27 15:45:38 -08:00
SDL Wiki Bot
fd14a20a4b
Sync SDL3 wiki -> header
2024-01-27 23:26:26 +00:00
Sam Lantinga
17768c51fc
Revert "Sync SDL3 wiki -> header"
...
This reverts commit 5e96e410d6
.
2024-01-27 15:25:29 -08:00
Charlie Volow
5ae2ffc127
document that text input is on by default
...
See:
https://discourse.libsdl.org/t/text-input-is-active-by-default-hampering-frame-rate/24396
https://discourse.libsdl.org/t/restoring-text-input-to-the-default-state/42690
2024-01-27 15:18:05 -08:00
SDL Wiki Bot
5e96e410d6
Sync SDL3 wiki -> header
2024-01-27 23:12:19 +00:00
Sam Lantinga
f66fe7e221
Replaced SDL_GetJoystickCaps() with joystick properties
...
Fixes https://github.com/libsdl-org/SDL/issues/8927
2024-01-27 15:11:52 -08:00
SDL Wiki Bot
aba3038353
Sync SDL3 wiki -> header
2024-01-27 21:01:19 +00:00
Sam Lantinga
3b55c7d1f4
Shortened SDL property names
2024-01-27 13:00:50 -08:00
SDL Wiki Bot
1885e6b2e0
Sync SDL3 wiki -> header
2024-01-27 20:47:21 +00:00
Sam Lantinga
8a4284b7df
Clarified the use of SDL_RENDERER_SOFTWARE when creating a renderer
...
Fixes https://github.com/libsdl-org/sdlwiki/issues/458
2024-01-27 12:46:41 -08:00
Sam Lantinga
b9ea2dde44
Added VisionOS as a supported target to the Xcode project
...
Also added SDL_PLATFORM_VISIONOS to the platform definitions and generally switched from TARGET_OS_* macros to SDL_PLATFORM_* macros.
2024-01-27 11:07:21 -08:00
Sam Lantinga
aeac8774f7
Missed one
2024-01-25 16:53:19 -08:00
Sam Lantinga
d0dd60c8ba
Updated new pixel format names to be more consistent with the others
2024-01-25 16:51:22 -08:00
Sam Lantinga
0f78aa7c30
Add some high bit-depth pixel formats
...
These are not fully supported yet, just preparing for future work.
2024-01-25 16:40:46 -08:00
Ryan C. Gordon
ecbbef8b8d
blendmode: Corrected docs for `SDL_BLENDOPERATION_[REV_]SUBTRACT`.
...
They were documented backwards.
Fixes #8910 .
2024-01-25 17:48:12 -05:00
Ryan C. Gordon
8814095aa8
main: Indented SDL_main headers for readability, removed SDL2 compat macros.
...
Specifically, SDL_WinRTRunApp, SDL_UIKitRunApp, and SDL_GDKRunApp macros were
removed, as likely unnecessary to SDL3 users. A note was added to the
migration doc about how to roll replacements. These are not going into
SDL_oldnames.h.
Fixes #8245 .
2024-01-25 17:39:38 -05:00
Sam Lantinga
02f59f3ae6
Note that SDL_GetHaptics() is useful in combination with SDL_OpenHaptic()
2024-01-25 08:21:01 -08:00
Ozkan Sezer
fd6ec3b9aa
SDL_intrin.h: adjust for new SDL_PLATFORM_WINDOWS meaning.
2024-01-24 21:20:50 +03:00