ALLEGRO_DISPLAY_MODE(3alleg5)
π 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 π¦
al_get_display_mode(3alleg5)β the main character that uses all this β¨
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
- 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