al_get_monitor_info(3)
π al_get_monitor_info(3) π
okay so bestie, this one is from the Library Functions Manual, and it's giving βwhere is that monitor actually sitting on the desktop?β energy. Let's get into it π
πΈ NAME πΈ
al_get_monitor_info - Allegro 5 API
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
bool al_get_monitor_info(int adapter, ALLEGRO_MONITOR_INFO *info)
π¦ DESCRIPTION π¦
So this function gets you information about a monitor's position on the desktop, periodt. adapter is a number from 0 to al_get_num_video_adapters()-1 β like, that's the range, no cap.
On Windows, use al_set_new_display_flags(3) to switch between Direct3D and OpenGL backends, which will often have different adapters available. iykyk, the adapter situation can lowkey change depending on the backend π
It returns true on success, false on failure. That's the vibe check right there β¨
π SEE ALSO π
xoxo, this page came from the Allegro reference manual footer, bestie β no date shown on this one, and that's iconic in its own way ππ«Ά
π¦ 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