SDL_HINT_ORIENTATIONS(3)
β¨ SDL_HINT_ORIENTATIONS β¨
okay bestie, welcome to the SDL_HINT_ORIENTATIONS page from the SDL3 FUNCTIONS manual π this is the lil hint that tells your app which way it's allowed to spin. screen rotation drama, but make it intentional.
πΈ NAME πΈ
SDL_HINT_ORIENTATIONS β a variable controlling which orientations are allowed on iOS/Android π«Ά
π SYNOPSIS π
#include <SDL3/SDL_hints.h>
#define SDL_HINT_ORIENTATIONS "SDL_ORIENTATIONS"
π DESCRIPTION π
so like. sometimes you genuinely need to explicitly control which UI orientations are allowed. not vibes-based rotation. explicit control. no cap.
this variable is a space delimited list of the following values:
"LandscapeLeft""LandscapeRight""Portrait""PortraitUpsideDown"
and the way that this hint should be set before SDL is initialized? yeah. before. set it early or it's giving nothing, fr fr π
β οΈ reminder: set this hint before SDL is initialized. not after. before. π
π AVAILABILITY π
this hint is available since SDL 3.2.0. periodt. β¨
Simple Directmedia Layer Β· SDL 3.4.18 Β· SDL_HINT_ORIENTATIONS(3) β k that's the whole page bestie, go set your hint before init 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