POLYTYPE_ATEX_MASK(3alleg4)
π POLYTYPE_ATEX_MASK β the mask-y polytype bestie era π
okay so bestie, welcome to the Allegro game programming library corner of the man pages, and today's main character is POLYTYPE_ATEX_MASK (and its partner in crime, POLYTYPE_PTEX_MASK). they're polygon rendering mode types, and they're lowkey iconic. periodt. π
β¨ SYNOPSIS β¨
#include <allegro.h>
#define POLYTYPE_ATEX_MASK
#define POLYTYPE_PTEX_MASK
π¦ DESCRIPTION π¦
okay so picture this: they're exactly like POLYTYPE_ATEX and POLYTYPE_PTEX, right? same energy, same vibe. BUT π
β the one glow-up is that zero texture map pixels get skipped. that's it. that's the whole thing.
and the way that this slays is: skipping those zero pixels means parts of the texture map can be transparent. so your texture gets to have see-through bits instead of you having to fake it. no cap. π«Ά
not me gatekeeping: if you were expecting some other behaviour, no β it's literally justPOLYTYPE_ATEX/POLYTYPE_PTEXwith the zero-pixel-skip on. don't overthink it, bestie. π
π SEE ALSO π
and that's the whole page, bestie, you ate that π go render some polygons and be the main character of your own 3D scene. this came to you from Allegro version 4.4.3 β she's an older queen but she still serves, fr fr. πβ¨πΈ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms