logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_SetHintWithPriority - Set a hint with a specific priority.

Availability

       This function is available since SDL 3.2.0.

Description

       The  priority  controls  the  behavior  when  setting a hint that already has a value. Hints will replace
       existing hints of their priority and lower.   Environment  variables  are  considered  to  have  override
       priority.

Function Parameters

name   the hint to set.

       value  the value of the hint variable.

       priority
              the SDL_HintPriority
               level for the hint.

Header File

       Defined in SDL3/SDL_hints.h

Name

       SDL_SetHintWithPriority - Set a hint with a specific priority.

Return Value

       Returns true on success or false on failure; call

       SDL_GetError () for more information.

See Also

(3), SDL_GetHint(3), (3), SDL_ResetHint(3), (3), SDL_SetHint(3)

Simple Directmedia Layer                           SDL 3.2.10                         SDL_SetHintWithPriority(3)

Synopsis

#include"SDL3/SDL.h"boolSDL_SetHintWithPriority(constchar*name,constchar*value,SDL_HintPrioritypriority);

Thread Safety

       It is safe to call this function from any thread.

See Also