al_get_new_display_adapter(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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:

lowkey important: it's per-thread energy β€” "the calling thread" is doing the creating here, iykyk 🧡

πŸ’œ SEE ALSO πŸ’œ


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