SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_HINT_VIDEO_EGL_SWAP_TEARING_HINT

Let EGL use more specific swapinterval hints.

Header File

Defined in <SDL3/SDL_hints.h>

Syntax

#define SDL_HINT_VIDEO_EGL_SWAP_TEARING_HINT "SDL_VIDEO_EGL_SWAP_TEARING_HINT"

Remarks

This hint is only used if the video subsystem is using EGL for OpenGL context management, and the EGL context supports the EGL_EXT_swap_tearing_hint extension. This lets the app specify the value for EGL_SWAP_TEARING_HINT_EXT in addition to the normal swap interval value.

Most apps should not set this hint. SDL will do the normal thing with standard calls to SDL_GL_SetSwapInterval by default.

The variable can be set to one of the following values:

This hint should be set before calling SDL_GL_SetSwapInterval.

Version

This hint is available since SDL 3.6.0.


CategoryAPI, CategoryAPIMacro, CategoryHints


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.