al_get_dis...rientation(3)
π« NAME π«
ok so this is al_get_display_orientation β the Allegro 5 API function that tells you which way your screen is facing β¨ (and yes bestie, we're in the Library Functions Manual, welcome, make yourself comfy π«Ά)
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
int al_get_display_orientation(ALLEGRO_DISPLAY* display)
π DESCRIPTION π
It returns the display orientation, no cap. That's the whole vibe. Hand it a display and it hands you back one of these 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. the range?? unknown to literally face-down on the table. it's giving full range of motion π
β SINCE β
5.1.0 β she's been serving since 5.1.0, a true veteran π
and that's the whole page, bestie!! this little gem lives in the Allegro reference manual (yes that's the source, and the date/version live right down there in the footer with the al_get_dis...rientation(3) tag β the truncated name is not me being lazy, that's literally how it's printed π). mwah, go read your display's mind ππ¦
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms