al_get_num_display_modes(3alleg5)
π al_get_num_display_modes π
okay so bestie, this is the Allegro 5 API page for al_get_num_display_modes, and it's literally the most "how many vibes are available" function ever. let's get into it π¦
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
int al_get_num_display_modes(void)
no args, no drama, just a number coming back at you π«Ά
πΈ DESCRIPTION πΈ
so the way this works is: you ask, and it tells you the number of available fullscreen display modes for whatever display parameters you've currently got set. it's giving headcount energy. π
and like, it's not just guessing β it goes and uses the values you set with al_set_new_display_refresh_rate(3alleg5) and al_set_new_display_flags(3alleg5) to figure out how many modes actually match. so whatever you configured, that's what it's counting against. iykyk β¨
and here's the little cheat code: if you set the new display parameters to zero, you get a list of all the modes for the default driver. no filtering, no gatekeeping, just everything. periodt. π
π SEE ALSO π
al_get_display_mode(3alleg5)β go here next bestie, it's the matching bestie function fr fr π
and that's the whole page!! this cutie lives in the Allegro reference manual and it's the same name up top and down bottom because symmetry slays π go count some modes, you main character, you πβ
π¦ 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