al_get_dis...rientation(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’« 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_UNKNOWN
  • ALLEGRO_DISPLAY_ORIENTATION_0_DEGREES
  • ALLEGRO_DISPLAY_ORIENTATION_90_DEGREES
  • ALLEGRO_DISPLAY_ORIENTATION_180_DEGREES
  • ALLEGRO_DISPLAY_ORIENTATION_270_DEGREES
  • ALLEGRO_DISPLAY_ORIENTATION_FACE_UP
  • ALLEGRO_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