al_get_display_mode(3)
π 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 ofal_get_num_display_modes(3)andal_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