SDL_AddHintCallback

Add a function to watch a particular hint.

The callback function is called _during_ this function, to provide it an initial value, and again each time the hint's value changes.

extern (C) nothrow @nogc extern
bool
SDL_AddHintCallback
(
const(char)* name
,,
void* userdata
)

Parameters

name const(char)*

The hint to watch.

callback SDL_HintCallback

An SDL_HintCallback function that will be called when the hint value changes.

userdata void*

A pointer to pass to the callback function.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

Threadsafety: It is safe to call this function from any thread.

See Also

Meta