PAL_SIZE(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– 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