POLYTYPE_ATEX_LIT(3alleg4)

✨ POLYTYPE_ATEX_LIT β€” bestie edition ✨

okay so, Allegro manual, POLYTYPE_ATEX_LIT(3alleg4), polygon rendering mode type from the Allegro game programming library. sit down, hydrate, let's go πŸ’–


πŸ’… NAME πŸ’…

POLYTYPE_ATEX_LIT, POLYTYPE_PTEX_LIT β€” polygon rendering mode type, Allegro game programming library. yes both of them, they're a duo, they come as a set 🫢


🌸 SYNOPSIS 🌸

#include <allegro.h>

#define POLYTYPE_ATEX_LIT

#define POLYTYPE_PTEX_LIT

πŸ¦‹ DESCRIPTION πŸ¦‹

So. These two are literally the glow-up versions of POLYTYPE_ATEX and POLYTYPE_PTEX. Same energy, but now with lighting ✨

Here's the tea: the global color_map table (that's the one for 256-color modes) or the blender function (that's for non-MMX truecolor modes) gets used to blend the texture with a light level. And where does that light level come from? From the c value in the vertex structure. iconic. no cap. πŸ‘‘

🚨 bestie, listen to me on this one: this must ONLY be used after you have set up the color mapping table or the blender functions. Like, set those up FIRST, then use these. Do not come crying to me later. πŸ’€

🌈 SEE ALSO 🌈


mwah πŸ’‹ that's the whole page, you ate it, go light some polygons bestie β€” Allegro version 4.4.3, POLYTYPE_ATEX_LIT(3alleg4), and that's on periodt πŸŽ€β­