POLYTYPE_ATEX_LIT(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– POLYTYPE_ATEX_LIT(3) πŸ’–

okay bestie, so this is a page straight out of the Allegro manual β€” that's the Allegro game programming library, in case you were wondering β€” and it's all about a polygon rendering mode type. yes, two of them actually: POLYTYPE_ATEX_LIT and POLYTYPE_PTEX_LIT. they're a matching set, they're iconic, they're lowkey the moment. ✨


🌸 SYNOPSIS 🌸

#include <allegro.h>

#define POLYTYPE_ATEX_LIT

#define POLYTYPE_PTEX_LIT

like, that's it. that's the whole vibe. two #defines and a dream. πŸŽ€


✨ DESCRIPTION ✨

okay so here's the tea, and I need you to actually listen because this part matters. 🫢

These two are literally just like POLYTYPE_ATEX and POLYTYPE_PTEX β€” same energy, same family β€” BUT with one extra little glow-up: they blend the texture using a light level that they pull from the c value inside the vertex structure. πŸ’…

and how do they blend it? okay so it depends on your mode, no cap:

  • in 256-color modes, they use the global color_map table to do the blending
  • in non-MMX truecolor modes, they use the blender function instead

either way, the light level comes from that c value in the vertex structure. that's the whole point of the _LIT suffix, bestie. it's giving lit. because it is. πŸ”₯

⚠️ MAJOR WARNING, FR FR: you can ONLY use these after you have already set up the color mapping table or the blender functions. not before. after. if you roll up with these defines before your color_map table or your blender functions are ready, that's on you and it will Not Go Well. πŸ’€ set up your stuff first, then render. periodt.

πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, they're all in the same friend group:


and that's the whole page, babe. this was POLYTYPE_ATEX_LIT(3) from the Allegro manual, version 4.4.3 β€” shoutout to Allegro for keeping it real since forever, mwah. πŸ¦‹πŸ’– go set up your color maps before you render, I'm begging you. byeee βœ¨πŸŒˆπŸŽ€

πŸ“¦ where this page comes from