ALLEGRO_DISPLAY_MODE(3alleg5)

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

πŸ’– ALLEGRO_DISPLAY_MODE πŸ’–

okay bestie, so this is a page from the Allegro reference manual β€” the Allegro 5 API, to be exact β€” and we're about to get into it. no cap, this one's short and sweet but it's lowkey iconic πŸ¦‹


✨ NAME ✨

ALLEGRO_DISPLAY_MODE β€” Allegro 5 API πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

typedef struct ALLEGRO_DISPLAY_MODE

πŸ’… DESCRIPTION πŸ’…

So bestie, this little struct is what you use for fullscreen mode queries. it's literally the container that holds all the deets about a supported fullscreen mode β€” like, everything you'd want to know before you commit to a resolution, it's giving full transparency. ✨

here's the whole thing, character for character, no edits:

typedef struct ALLEGRO_DISPLAY_MODE {
   int width;          // Screen width
   int height;         // Screen height
   int format;         // The pixel format of the mode
   int refresh_rate;   // The refresh rate of the mode
} ALLEGRO_DISPLAY_MODE;

and lemme break it down so it hits right:

  • width β€” the screen width. the horizontal vibe. πŸ“
  • height β€” the screen height. the vertical vibe. πŸ“
  • format β€” the pixel format of the mode. what colours are we working with, bestie? 🎨
  • refresh_rate β€” the refresh rate of the mode. how fast it's giving. ⚑
heads up, queen: the refresh_rate may be zero if it's unknown. so don't come for it if it ghosts you with a 0 β€” that's just it not knowing, fr fr. πŸ™ˆ

and if you're sitting there like "okay but what does format even mean" β€” no worries, bestie, there's a whole page for that. go check out ALLEGRO_PIXEL_FORMAT(3alleg5). iykyk. πŸ’œ


πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ that's the whole page, and honestly? ate. this was pulled straight from the Allegro reference manual, covering Allegro 5 β€” you can catch the title ALLEGRO_DISPLAY_MODE(3alleg5) right up top where it belongs. go query some display modes, bestie, you got this πŸ«ΆπŸ’–

πŸ“¦ where this page comes from