al_get_display_orientation(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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_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… 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