54 if (!name || !value) {
63 for (hint = SDL_hints; hint; hint = hint->
next) {
65 if (priority < hint->priority) {
110 for (hint = SDL_hints; hint; hint = hint->
next) {
125 if (!hint || !*hint) {
126 return default_value;
141 if (!name || !*name) {
160 for (hint = SDL_hints; hint; hint = hint->
next) {
187 callback(userdata, name, value, value);
196 for (hint = SDL_hints; hint; hint = hint->
next) {
223 SDL_hints = hint->
next;
const char * SDL_GetHint(const char *name)
Get a hint.
void SDL_DelHintCallback(const char *name, SDL_HintCallback callback, void *userdata)
Remove a function watching a particular hint.
void SDL_AddHintCallback(const char *name, SDL_HintCallback callback, void *userdata)
Add a function to watch a particular hint.
SDL_bool SDL_SetHintWithPriority(const char *name, const char *value, SDL_HintPriority priority)
Set a hint with a specific priority.
SDL_HintPriority
An enumeration of hint priorities.
#define SDL_InvalidParamError(param)
GLuint const GLchar * name
GLsizei const GLfloat * value
SDL_bool SDL_SetHint(const char *name, const char *value)
Set a hint with normal priority.
SDL_HintWatch * callbacks
SDL_bool SDL_GetHintBoolean(const char *name, SDL_bool default_value)
Get a hint.
#define SDL_OutOfMemory()
SDL_HintPriority priority
void(* SDL_HintCallback)(void *userdata, const char *name, const char *oldValue, const char *newValue)
type definition of the hint callback function.
void SDL_ClearHints(void)
Clear all hints.
SDL_HintCallback callback
struct SDL_HintWatch * next
static SDL_Hint * SDL_hints