POLYTYPE_ATEX_LIT(3)
π 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_maptable 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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms