ALLEGRO_WRITE_MASK_FLAGS(3)
π ALLEGRO_WRITE_MASK_FLAGS(3) π
okay so this is from the Library Functions Manual and it's the Allegro 5 API page for ALLEGRO_WRITE_MASK_FLAGS(3) β bestie, we're talking write masks and it's lowkey iconic β¨
β¨ NAME β¨
ALLEGRO_WRITE_MASK_FLAGS β Allegro 5 API. That's the whole name vibe, fr fr. π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
typedef enum ALLEGRO_WRITE_MASK_FLAGS {
Yes, the enum opening is exactly that β no cap, that's what the page says. π«Ά
π DESCRIPTION π
The way this works is a whole bit situation: each enabled bit means the corresponding value is written, and each disabled bit means it is not. That's the vibe check. π
Here are the flag besties:
ALLEGRO_MASK_REDβ the red bit. Enabled = written, disabled = not. πALLEGRO_MASK_GREENβ the green bit. Same enabled/disabled situation. π±ALLEGRO_MASK_BLUEβ the blue bit. You already know. πALLEGRO_MASK_ALPHAβ the alpha bit. Enabled means alpha gets written, disabled means nope. π¦ALLEGRO_MASK_DEPTHβ the depth bit. Same deal, no cap. πALLEGRO_MASK_RGBβ literally the same asRED | GREEN | BLUE. Periodt. π₯ALLEGRO_MASK_RGBAβ literally the same asRGB | ALPHA. Ate. π
π°οΈ SINCE π°οΈ
This one has been around since 5.1.2, bestie. Vintage-ish but still main character energy. β¨
π SEE ALSO π
al_set_render_state(3)β go look at that one too, iykyk. π«Ά
Allegro reference manual π β page ALLEGRO_WRITE_MASK_FLAGS(3). The footer didn't give me a date, so I'm not inventing one, bestie π.
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms