al_set_new...ay_adapter(3)

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

πŸŽ€ al_set_new...ay_adapter(3) πŸŽ€

Okay bestie, this page comes from the Library Functions Manual, and it’s literally all about one Allegro 5 API function. πŸ’… Short, sweet, iconic.

🌸 NAME 🌸

al_set_new_display_adapter β€” Allegro 5 API ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro.h>

void al_set_new_display_adapter(int adapter)

πŸ’– DESCRIPTION πŸ’–

Okay so al_set_new_display_adapter sets the adapter to use for new displays created by the calling thread. Slay. 🫢

The adapter has a monitor attached to it, periodt. Information about the monitor can be gotten using al_get_num_video_adapters(3) and al_get_monitor_info(3). iykyk. πŸ‘‘

To return to the default behaviour, pass ALLEGRO_DEFAULT_DISPLAY_ADAPTER. That’s the whole reset-to-default vibe. 🌈

⭐ SEE ALSO ⭐


That’s the page, bestie πŸ“ β€” cute lil sign-off from the footer: Allegro reference manual, page al_set_new...ay_adapter(3), and no separate date is listed on that footer line. πŸ’–βœ¨

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