SDL_GetHintBoolean(3)

SDL_GetHintBoolean3

Get the boolean value of a hint variable.

Usage

#include "SDL3/SDL.h"

bool SDL_GetHintBoolean(const char *name, bool default_value);

Header file

Defined in SDL3/SDL_hints.h

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.

Return value

Returns the boolean value of a hint or the provided default value if the hint does not exist.

Thread safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.