al_get_display_orientation(3alleg5)
β¨ al_get_display_orientation β¨
okay bestie, welcome to the Allegro 5 API β yes, the 3alleg5 girlies know exactly what's up π
this one lives in the Allegro reference manual and it's literally the chillest little function, i promise.
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
int al_get_display_orientation(ALLEGRO_DISPLAY* display)
she takes one ALLEGRO_DISPLAY* and hands you back an int. that's it. that's the whole vibe π
π¦ DESCRIPTION π¦
so basically this function returns the display orientation, and it's gonna be one of these seven iconic little constants:
ALLEGRO_DISPLAY_ORIENTATION_UNKNOWNALLEGRO_DISPLAY_ORIENTATION_0_DEGREESALLEGRO_DISPLAY_ORIENTATION_90_DEGREESALLEGRO_DISPLAY_ORIENTATION_180_DEGREESALLEGRO_DISPLAY_ORIENTATION_270_DEGREESALLEGRO_DISPLAY_ORIENTATION_FACE_UPALLEGRO_DISPLAY_ORIENTATION_FACE_DOWN
likeβ¦ UNKNOWN? she doesn't know. FACE_UP and FACE_DOWN?? the way your phone is just lying there flat on the table, living its best life π that's genuinely what those mean and i'm obsessed with it. and the degrees ones are your classic rotate-your-device moment β 0, 90, 180, 270, all the queens π
ngl bestie, the exact behaviour of any given orientation is up to the platform β this function just reports what it is, it doesn't decide anything for you π
β SINCE β
she's been here since 5.1.0 β an elder, a legend, a main character from day one π
okay that's the whole page, no cap π«Ά this was Allegro reference manual doing its thing for al_get_display_orientation(3alleg5) β go check your display's orientation, it's giving self-care ππΈ
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms