ALLEGRO_DISPLAY(3alleg5)

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

πŸ’– NAME πŸ’–

ALLEGRO_DISPLAY β€” it's giving Allegro 5 API ✨ (and yes bestie, this whole page comes straight out of the allegro5 manual, we're fancy like that πŸŽ€)


🌸 SYNOPSIS 🌸

okay so first you gotta pull it in, like this:

#include <allegro5/allegro.h>

typedef struct ALLEGRO_DISPLAY ALLEGRO_DISPLAY;

that second line is the actual typedef, no cap, character for character 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so like… ALLEGRO_DISPLAY is an opaque type πŸ‘€ β€” which is just fancy talk for "you don't get to peek inside, bestie, the struct is a mystery" πŸ”’ β€” and it represents an open display or window. that's it. that's the whole vibe. a window. a display. main character energy fr fr πŸ’…βœ¨

lowkey the "opaque" part is the moment: you hold the pointer, you pass it around, you never poke at what's inside. iconic behaviour honestly 😌

and that's the whole page babes, short and slay 🌈

Allegro reference manual, version 3alleg5 β€” no date on this one, so I can't tell you when it dropped, but it ate regardless πŸ’œ bye bestie, go open a window πŸͺŸβœ¨

πŸ“¦ where this page comes from