SDL_SetHintWithPriority(3)
π SDL_SetHintWithPriority π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual β this one's about setting a hint with a specific priority, and it's lowkey iconic once you get the vibe. β¨
πΈ NAME πΈ
SDL_SetHintWithPriority β set a hint with a specific priority. that's it, that's the whole job. π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_hints.h>
bool SDL_SetHintWithPriority(const char *name, const char *value, SDL_HintPriority priority);
β¨ DESCRIPTION β¨
so here's the tea, bestie: the priority is what controls the behavior when you're setting a hint that already has a value. π«
Hints will replace existing hints of their priority and lower. that's the rule, no cap.
And listen β environment variables are considered to have override priority. so like, if the env is talking, it's the main character and everything else is a supporting role. π
π FUNCTION PARAMETERS π
nameβ the hint to set. which one are we messing with today, queen?valueβ the value of the hint variable. the actual content, the moment, the vibe.priorityβ theSDL_HintPrioritylevel for the hint. how loud do you want this hint to be?
π RETURN VALUE π
Returns true on success or false on failure. if it flopped, call SDL_GetError() for more information β she will tell you exactly what went wrong, fr fr. π
π₯ THREAD SAFETY π₯
It is safe to call this function from any thread. yes, ANY thread. go off, multi-threaded legend. π§
β AVAILABILITY β
This function is available since SDL 3.2.0. vintage-ish but make it fresh. π
π SEE ALSO π
Simple Directmedia Layer Β· SDL 3.4.18 Β· SDL_SetHintWithPriority(3) β mwah, that's the whole page, tysm for reading, go set some hints and slay πβ¨ππ¦π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms