PAL_SIZE(3)
π PAL_SIZE(3) π
okay bestie, so this is PAL_SIZE from the Allegro manual, section 3 (that's the library-functions section, iykyk). it's a tiny little macro but she's iconic and you're gonna use her constantly, fr fr. π
β¨ NAME β¨
PAL_SIZE β the number of entries in a palette. she lives in the Allegro game programming library</... wait, no, Allegro game programming library. π¦
β¨ SYNOPSIS β¨
#include <allegro.h>
#define PAL_SIZE
no arguments, no surprises, just a vibe. π
β¨ DESCRIPTION β¨
so basically PAL_SIZE is a preprocessor constant and she is equal to 256. that's it. that's the whole thing. no cap. π«Ά
like, every time you need to know how many entries a palette has, you don't gotta hardcode 256 like some kind of menace β you just use PAL_SIZE and let the macro do her little thing. main character energy tbh. β¨
β¨ SEE ALSO β¨
go read those too, bestie, they're all part of the same palette cinematic universe π
mwah π this was brought to you by Allegro, version 4.4.3 β yeah she's an older queen but she still slays. ok bye, go compile something cute π§π
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms