al_get_display_mode(3)

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

πŸ’– al_get_display_mode(3) πŸ’–

From the Library Functions Manual, bestie β€” this one’s Allegro 5 API realness ✨.

🌸 NAME 🌸

al_get_display_mode β€” Allegro 5 API

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

ALLEGRO_DISPLAY_MODE *al_get_display_mode(int index, ALLEGRO_DISPLAY_MODE *mode)

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this function retrieves a fullscreen mode β€” literally that’s the whole assignment, bestie πŸ’….

Vibe check: display parameters should not be changed between a call of al_get_num_display_modes(3) and al_get_display_mode(3). Do not be messy in that window, fr fr.

index must be between 0 and the number returned from al_get_num_display_modes-1. That’s the valid index zone, no guessing πŸŽ€.

mode must be an allocated ALLEGRO_DISPLAY_MODE structure. Like, actually allocated β€” not just a cute little pointer with dreams 🌸.

This function will return NULL on failure, and the mode parameter that was passed in on success. So failure gives you NULL; success hands you back the same mode you passed in. Iconic behavior, no cap ✨.

🌈 SEE ALSO 🌈


Catch you later, bestie 🫢 β€” this page is from the Allegro reference manual and carries the page tag al_get_display_mode(3). The footer didn’t list a date, so no date reveal today πŸ’€πŸ’–.

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