SDL_GetDisplayName(3)
π SDL_GetDisplayName π
okay bestie, welcome to the SDL_GetDisplayName(3) page β that's the SDL3 functions corner of the manual, and this one is genuinely so useful it's not even funny. it's giving "who even am i talking to" but for monitors. πΈ
β¨ NAME β¨
SDL_GetDisplayName β grab the name of a display, in UTF-8 encoding, no cap. π₯οΈπ
π¦ SYNOPSIS π¦
#include <SDL3/SDL_video.h>
const char * SDL_GetDisplayName(SDL_DisplayID displayID);
π FUNCTION PARAMETERS π
displayIDβ the instance ID of the display you wanna interrogate. that's the one you're asking "hey girl, what's your name?" π₯°
β RETURN VALUE β
it hands you back the name of a display. and if things go sideways? you get NULL. π in that case, call SDL_GetError() for more information β she'll tell you what went wrong, fr fr.
π₯ THREAD SAFETY π₯
main thread only, bestie. do not try to call this from some random worker thread, that's not the vibe. π«π§΅
π AVAILABILITY π
this one's been around since SDL 3.2.0. so if you're on anything older... girl. upgrade. β¨
π SEE ALSO π
SDL_GetDisplays(3)β go get yourself the list first, then come back here and name them all. iconic duo behavior, honestly. π«Ά
mwah π that's the whole page. go forth and name your displays, you absolute main character.
this lil masterpiece lives in the Simple Directmedia Layer manual, SDL 3.4.18 era β so if you're reading this, hi, you're exactly where you're supposed to be. πβ¨
π¦ 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