al_get_display_format(3alleg5)

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

✨ NAME ✨

al_get_display_format β€” the Allegro 5 API bestie that tells you what your display is serving πŸ’…

(also hi, you're in the allegro5 manual, welcome to the function reference, it's cozy here 🫢)


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

int al_get_display_format(ALLEGRO_DISPLAY *display)

πŸ’– DESCRIPTION πŸ’–

Okay so bestie, here's the tea: this function gets the pixel format of the display. That's it. That's the whole job. You hand it a display, it tells you what pixel format that display is rocking. No cap, it's that simple. πŸ‘‘

It returns an int, and takes exactly one argument β€” an ALLEGRO_DISPLAY * named display. Nothing mysterious, nothing sneaky, just a lil format check for your display. ✨


πŸ¦‹ SEE ALSO πŸ¦‹


And that's the whole page, bestie! This lil rewrite lives in the Allegro reference manual (allegro5, al_get_display_format(3alleg5)), so go forth and format your pixels, you icon. πŸŒˆπŸ’–πŸŽ€

πŸ“¦ where this page comes from