ALLEGRO_WRITE_MASK_FLAGS(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 as RED | GREEN | BLUE. literally the trio, periodt 🌈
  • ALLEGRO_MASK_RGBA β€” same as RGB | 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 πŸ”₯


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