ALLEGRO_DISPLAY_MODE(3)

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

πŸ’– 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 mode
  • refresh_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