SDL_GetHintBoolean - Get the boolean value of a hint variable.
Contents
Availability
This function is available since SDL 3.2.0.
Function Parameters
name the name of the hint to get the boolean value from.
default_value
the value to return if the hint does not exist.
Name
SDL_GetHintBoolean - Get the boolean value of a hint variable.
Return Value
Returns the boolean value of a hint or the provided default value if the hint does not exist.
See Also
SDL_GetHint(3), SDL_SetHint(3) Simple Directmedia Layer SDL 3.2.20 SDL_GetHintBoolean(3)
Synopsis
#include<SDL3/SDL_hints.h>boolSDL_GetHintBoolean(constchar*name,booldefault_value);
Thread Safety
It is safe to call this function from any thread.
