POLYTYPE_ATEX_MASK_LIT(3alleg4)

πŸ’… POLYTYPE_ATEX_MASK_LIT β€” Allegro manual, bestie edition ✨

okay so you're reading the Allegro manual page for POLYTYPE_ATEX_MASK_LIT, and honestly? iconic of you. this is part of the Allegro game programming library, and these are polygon rendering mode types. let's get into it πŸŽ€


🌸 NAME 🌸

POLYTYPE_ATEX_MASK_LIT, POLYTYPE_PTEX_MASK_LIT β€” polygon rendering mode type from the Allegro game programming library. yeah, both of them. two names, one page, we love a duo πŸ‘‘


✨ SYNOPSIS ✨

#include <allegro.h>

#define POLYTYPE_ATEX_MASK_LIT

#define POLYTYPE_PTEX_MASK_LIT

like, that's the whole thing. two little #defines just vibing in there πŸ¦‹


πŸ’– DESCRIPTION πŸ’–

okay so listen. these are literally just like POLYTYPE_ATEX_LIT and POLYTYPE_PTEX_LIT β€” same energy, same family β€” BUT with one extremely important little twist:

zero texture map pixels get skipped. 🫒

and why do we care?? because that means parts of the texture map can be transparent, bestie. transparent!! you can have holes in your texture. you can have shapes. you can have looks. the mask is doing the work and it's serving, no cap πŸ’…

so like β€” LIT versions = lighting, and the MASK versions = the transparent-pixel trick on top. both flavours exist here:

  • the A version: POLYTYPE_ATEX_MASK_LIT
  • the P version: POLYTYPE_PTEX_MASK_LIT

same deal, different letter. iykyk ✨


πŸ¦‹ SEE ALSO πŸ¦‹

go read those too, they're all in the same friend group 🫢


fr fr, that's the whole page. no notes. periodt. πŸ’€βœ¨

this was POLYTYPE_ATEX_MASK_LIT(3alleg4) from the Allegro manual, version 4.4.3. mwah, go render something gorgeous, bestie πŸ˜­πŸ’–πŸŒˆ