SDL Wiki
(This is the legacy documentation for stable SDL2, the current stable version; SDL3 is the current development version.)

SDL_GetHintBoolean

Get the boolean value of a hint variable.

Syntax

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

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.

Version

This function is available since SDL 2.0.5.


CategoryAPI, CategoryHints


[ edit | delete | history | feedback | raw ]

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

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