SDL_SetHint - Man Page

Set a hint with normal priority.

Header File

Defined in SDL3/SDL_hints.h

Synopsis

#include "SDL3/SDL.h"

bool SDL_SetHint(const char *name, const char *value);

Description

Hints will not be set if there is an existing override hint or environment variable that takes precedence. You can use

SDL_SetHintWithPriority () to set the hint with override priority instead.

Function Parameters

name

the hint to set.

value

the value of the hint variable.

Return Value

Returns true on success or false on failure; call

SDL_GetError () for more information.

Thread Safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

See Also

·(3), SDL_GetHint(3), ·(3), SDL_ResetHint(3), ·(3), SDL_SetHintWithPriority(3)

Referenced By

SDL_GetHint(3), SDL_GetHintBoolean(3), SDL_ResetHint(3), SDL_SetHintWithPriority(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS