POLYTYPE_GRGB(3alleg4)
π NAME π
POLYTYPE_GRGB β bestie, it's a polygon rendering mode type from the Allegro game programming library π
β¨ SYNOPSIS β¨
#include <allegro.h>
#define POLYTYPE_GRGB
π¦ DESCRIPTION π¦
Okay so listen. POLYTYPE_GRGB is a gouraud shaded polygon, but not like the regular kind β instead of interpolating one single color across the whole thing, it interpolates RGB triplets. Full color gradient vibes, it's giving sunset energy fr fr π
β οΈ In 256-color modes this uses the global rgb_map table to convert the result into an 8-bit paletted color, which means it must only be used after you have set up the RGB mapping table! No cap, if you skip that step you're gonna have a bad time π
The colors for each vertex come from the c value, and that value gets interpreted as a 24-bit RGB triplet. So like:
0xFF0000is red π΄0x00FF00is green π’0x0000FFis blue π΅
That's it, that's the whole color language. Slay π
πΈ SEE ALSO πΈ
k bye bestie, go make something pretty π this was Allegro, version 4.4.3, and yes this page is literally called POLYTYPE_GRGB(3alleg4) β write it down, it's iconic πβ¨
π¦ 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