font_has_alpha(3alleg4)

✨ font_has_alpha ✨

okay bestie, welcome to the Allegro manual β€” yes, that Allegro, the game programming library, and yes we're doing font_has_alpha(3alleg4) today πŸ’–


🌸 NAME 🌸

font_has_alpha β€” bestie, this one literally searches every single pixel of a font looking for alpha values. It's giving detective energy πŸ”βœ¨ Part of the Allegro game programming library.


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro.h>

int font_has_alpha(FONT *f)

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: this function goes through all the pixels of all the glyphs in the font f and looks for alpha values. Every. Single. One. No skipping, no shortcuts, she's thorough πŸ’…


πŸ’œ RETURN VALUE πŸ’œ

Returns TRUE if any alpha pixels are found β€” and if there's not a single one? FALSE, bestie. That's it, that's the whole mood 🌈


πŸ‘‘ SEE ALSO πŸ‘‘


k bye ily, go check those pixels πŸ’–βœ¨

this page came to you courtesy of the Allegro manual, version 4.4.3 β€” mwah, stan πŸŽ€