SDL_GETNATURALDISPLAYORIENTATION(3)
π NAME π
SDL_GetNaturalDisplayOrientation β bestie, this one tells you how a display is oriented when it's sitting there unrotated. Like, its natural, no-extra-vibes state. π¦
β¨ SYNOPSIS β¨
#include <SDL3/SDL_video.h>
SDL_DisplayOrientation SDL_GetNaturalDisplayOrientation(SDL_DisplayID displayID);
πΈ FUNCTION PARAMETERS πΈ
displayIDβ the instance ID of the display you wanna query. Yes, that display. The one you're curious about. π
π RETURN VALUE π
It hands you back the SDL_DisplayOrientation enum value of the display π β or, if that info just isn't available, you get SDL_ORIENTATION_UNKNOWN instead. Not me getting ghosted by a display's orientation. π
π₯ THREAD SAFETY π₯
Okay so, important: this function should only be called on the main thread. Periodt. Don't be out here calling it from some random thread, that's not the vibe. π«π§΅
β AVAILABILITY β
This function is available since SDL 3.2.0. So if you're on something older, sorry bestie, she's not there yet. π
π SEE ALSO π
SDL_GetDisplays(3)β go get the list of displays first, iykyk. π«Ά
and that's the whole page, no cap! β¨ This lil' slice of documentation came to you from Simple Directmedia Layer, rocking SDL 3.4.18. Go forth and query those displays, you icon. π ππ¦
π¦ 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