ALLEGRO_DISPLAY_MODE(3)
π ALLEGRO_DISPLAY_MODE(3) π
okay so bestie, welcome to the Allegro 5 API reference manual β this one's the tea on ALLEGRO_DISPLAY_MODE, and honestly it's a tiny little struct that does a very specific job. let's get into it π«Ά
β¨ SYNOPSIS β¨
like, here's what you're working with:
#include <allegro5/allegro.h>
typedef struct ALLEGRO_DISPLAY_MODE
πΈ DESCRIPTION πΈ
so this struct is used for fullscreen mode queries β iykyk. it literally just holds info about one of the supported fullscreen modes. no more, no less, and she ate π
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;
breakin' it down for you:
widthβ the screen width πheightβ the screen height π¦formatβ the pixel format of the moderefresh_rateβ the refresh rate of the mode β
heads up bestie: refresh_rate may be zero if unknown π so don't go dividing by it, fr fr.
and if you're sitting there like "okay but what does format even mean tho" β no worries, there's a whole explanation waiting for you over in ALLEGRO_PIXEL_FORMAT(3). go read it, it's giving essential context β¨
π SEE ALSO π
π that's the whole page, bestie β short and iconic, just how we like it. this one's from the Allegro reference manual, version/date vibes included, so you know it's official π mwah, go forth and query those fullscreen modes π π
π¦ 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