SDL_GetHint(3)

πŸ’– SDL_GetHint(3) πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages πŸŽ€ today we're talking about SDL_GetHint(3) and honestly? she's the main character of the hints situation.


✨ NAME ✨

SDL_GetHint β€” get the value of a hint. that's it, that's the whole job, and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_hints.h>

const char* SDL_GetHint(const char *name);

like yes, one include, one function call, we love a low-effort icon ✨


πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • name β€” the hint you wanna query. literally just tell her which hint and she'll go look it up for you, no cap 🫢

πŸŽ€ RETURN VALUE πŸŽ€

she hands you back the string value of the hint you asked about πŸ’– and if that hint isn't set at all? you get NULL. not a vibe, but it's honest 😭


πŸ‘‘ THREAD SAFETY πŸ‘‘

good news bestie: it is safe to call this function from any thread. go wild, every thread can have a little hint query, as a treat 🌈


⭐ AVAILABILITY ⭐

this one's been around since SDL 3.2.0 β€” so if you're on anything older, sorry babe, no hints for you πŸ™ˆ


🌟 SEE ALSO 🌟


no cap: if you're setting hints you're gonna want these two, they're literally the besties of SDL_GetHint 🫢

and that's the tea, bestie πŸ“ this page came to you from Simple Directmedia Layer, running the SDL 3.4.18 era, and yes SDL_GetHint(3) is the moment. periodt πŸ’…βœ¨

πŸ“¦ where this page comes from