al_get_monitor_info(3alleg5)
β¨ NAME β¨
al_get_monitor_info β it's giving Allegro 5 API realness π
π¦ SYNOPSIS π¦
#include <allegro5/allegro.h>
bool al_get_monitor_info(int adapter, ALLEGRO_MONITOR_INFO *info)
πΈ DESCRIPTION πΈ
okay so bestie, this one tells you where a monitor is chilling on the desktop π literally, it grabs info about a monitor's position, that's the whole vibe.
The adapter you pass in is a number from 0 to al_get_num_video_adapters()-1. that's it, that's the range, no cap π
On Windows specifically, you're gonna wanna use al_set_new_display_flags(3alleg5) to switch between the Direct3D and OpenGL backends, and heads up β those two will often have different adapters available to you π so don't be shocked when the list changes on you.
It returns true on success and false on failure. simple as π«Ά
π SEE ALSO π
and that's the whole page, bestie π
this cutie came straight outta the Allegro reference manual as al_get_monitor_info(3alleg5) β go forth and query those adapters, mwah πβ¨
π¦ 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