AL_GET_NUM_DISPLAY_MODES(3)

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

πŸ’– al_get_num_display_modes(3) πŸ’–

okay bestie, this one is from the Library Functions Manual and it’s serving Allegro 5 API realness. Let’s get into it ✨

🌸 NAME 🌸

al_get_num_display_modes β€” Allegro 5 API

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

int al_get_num_display_modes(void)

πŸŽ€ DESCRIPTION πŸŽ€

So basically, this function gets the number of available fullscreen display modes for the current set of display parameters. It will use the values set with al_set_new_display_refresh_rate(3) and al_set_new_display_flags(3) to find the number of modes that match. πŸ’…

And if you set the new display parameters to zero? Boom β€” you get a list of all modes for the default driver. Slay. πŸ¦‹

🫢 SEE ALSO 🫢


πŸ’– cute little sign-off bestie: this page comes from the Allegro reference manual, and it’s the al_get_num_display_modes(3) page. The original footer doesn’t show a date, so I’m not inventing one β€” periodt. πŸ’…βœ¨

πŸ“¦ 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