al_get_monitor_info(3alleg5)

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

✨ 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