al_get_new_display_adapter(3alleg5)
π al_get_new_display_adapter β Allegro 5 API π
okay bestie, welcome to the Allegro 5 API manual, page al_get_new_display_adapter(3alleg5) β¨ this one is short and sweet, like a little snack, but it's important so pay attention π«Ά
πΈ NAME πΈ
al_get_new_display_adapter β the Allegro 5 API girlie who tells you which video adapter your next display is gonna live on π
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
int al_get_new_display_adapter(void)
no args, no drama, just vibes π¦
π DESCRIPTION π
so here's the tea β β this function gets the video adapter index where new displays are gonna be created by the calling thread π
but hold up, there's a condition, and it's giving if and only if: this only reflects a value that was previously set with al_set_new_display_adapter(3alleg5) π
otherwise? it just returns ALLEGRO_DEFAULT_DISPLAY_ADAPTER, the default, the baseline, the no-notes era π
so basically:
- set it with
al_set_new_display_adapter(3alleg5)β you get your value back, slay β¨ - never set it β
ALLEGRO_DEFAULT_DISPLAY_ADAPTER, periodt π
lowkey important: it's per-thread energy β "the calling thread" is doing the creating here, iykyk π§΅
π SEE ALSO π
al_set_new_display_adapter(3alleg5)β the setter bestie, go read her next π«Ά
and that's the whole page, no cap π this came to you straight from the Allegro reference manual, al_get_new_display_adapter(3alleg5), mwah π go forth and query your adapters, main character π
π¦ 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