ALLEGRO_WRITE_MASK_FLAGS(3alleg5)
π ALLEGRO_WRITE_MASK_FLAGS π
okay bestie, gather round, because we're talking about an enum from the Allegro 5 API (yes, 3alleg5, the whole manual section, hi) and it's genuinely one of those little guys that decides everything about what actually gets written. π
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
typedef enum ALLEGRO_WRITE_MASK_FLAGS {
πΈ DESCRIPTION πΈ
So here's the tea, and it's honestly so simple it's iconic: this is a bitmask, and every single bit in it is a yes/no switch. π¦
- If a bit is enabled, the corresponding value gets written. βοΈ
- If a bit is disabled, that value does not get written. π«
That's it. That's the whole vibe. No cap.
Here's the full lineup of bits you can flip, bestie:
ALLEGRO_MASK_REDβ the red channel's lil permission slip πALLEGRO_MASK_GREENβ green channel, go off πΏALLEGRO_MASK_BLUEβ blue channel, slay πALLEGRO_MASK_ALPHAβ alpha channel, the transparency diva β¨ALLEGRO_MASK_DEPTHβ depth, for the 3D girlies π«ΆALLEGRO_MASK_RGBβ same asRED | GREEN | BLUE. literally the trio, periodt πALLEGRO_MASK_RGBAβ same asRGB | ALPHA. the trio plus alpha, main character energy π
β SINCE β
5.1.2 β she's been here since 5.1.2 and she's been serving ever since π
π₯ SEE ALSO π₯
al_set_render_state(3alleg5)β go read it, iykyk π
and that's the whole page, bestie!! this lil writeup lives in the Allegro reference manual (that's the ALLEGRO_WRITE_MASK_FLAGS(3alleg5) page, fr fr) and yeah, that's the source and the version and everything β go forth and mask your writes responsibly πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms