Add a function to watch a particular hint.
Defined in <SDL3/SDL_hints.h>
int SDL_AddHintCallback(const char *name,
SDL_HintCallback callback,void *userdata);
const char * | name | the hint to watch. |
SDL_HintCallback | callback | an SDL_HintCallback function that will be called when the hint value changes. |
void * | userdata | a pointer to pass to the callback function. |
(int) Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
It is NOT safe to call this function from two threads at once.
This function is available since SDL 3.0.0.