al_get_display_mode(3alleg5)
β¨ NAME β¨
al_get_display_mode β it's giving Allegro 5 API energy, bestie π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
ALLEGRO_DISPLAY_MODE *al_get_display_mode(int index, ALLEGRO_DISPLAY_MODE *mode)
π DESCRIPTION π
okay so. this one snatches you a fullscreen mode, fr fr. π₯οΈβ¨
here's the tea tho β do NOT be out here changing your display parameters between calling al_get_num_display_modes(3alleg5) and al_get_display_mode(3alleg5). like, the two of them are a package deal, a duo, main character energy together. mess with the display in between and the whole vibe check fails. π
and index? it's gotta be between 0 and the number returned from al_get_num_display_modes minus 1. so like, 0 through al_get_num_display_modes - 1, no cap. no out-of-bounds shenanigans, we don't do that here. π
mode has to be an allocated ALLEGRO_DISPLAY_MODE structure β like, actually allocated, bestie, not just a vibe. π«Ά
what does it give back?
- on failure β it returns
NULLπ - on success β it returns the
modeparameter you passed in, all glowed up and ready π
π¦ SEE ALSO π¦
and that's the whole page, icon, you ate that πβ¨ this lil' legend lives in the Allegro reference manual, and yeah, the page is literally called al_get_display_mode(3alleg5) β same name top and bottom, symmetrical queen ππ
π¦ 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