Added a slider to manually adjust HDR headroom on visionOS

Ideally the OS would provide a way to query the current headroom, but for now users can manually adjust it.
This commit is contained in:
Sam Lantinga
2026-07-06 13:24:20 -07:00
parent ac6e7c795e
commit d8d5b7c6c5
5 changed files with 89 additions and 0 deletions

View File

@@ -4324,6 +4324,20 @@ extern "C" {
*/
#define SDL_HINT_VIDEO_X11_XRANDR "SDL_VIDEO_X11_XRANDR"
/**
* A variable controlling whether the HDR headroom slider should be shown in the visionOS window settings.
*
* The variable can be set to the following values:
*
* - "0": The HDR headroom slider is not shown. (default)
* - "1": The HDR headroom slider is shown.
*
* This hint should be set before SDL is initialized.
*
* \since This hint is available since SDL 3.6.0.
*/
#define SDL_HINT_VISIONOS_HDR_HEADROOM_UI "SDL_VISIONOS_HDR_HEADROOM_UI"
/**
* A variable controlling whether touch should be enabled on the back panel of
* the PlayStation Vita.