---
name: "POLYTYPE_GRGB"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/POLYTYPE_GRGB"
---

# POLYTYPE\_GRGB(3alleg)

Polygon rendering mode type Allegro game programming library.

## NAME

POLYTYPE\_GRGB - Polygon rendering mode type Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**#define POLYTYPE\_GRGB**

## DESCRIPTION

A gouraud shaded polygon which interpolates RGB triplets rather than a single color. In 256-color modes this uses the global rgb\_map table to convert the result to an 8-bit paletted color, so it must only be used after you have set up the RGB mapping table! The colors for each vertex are taken from the \`c' value, which is interpreted as a 24-bit RGB triplet (0xFF0000 is red, 0x00FF00 is green, and 0x0000FF is blue).

## SEE ALSO

[**polygon3d**(3alleg)](/polygon3d/3alleg.md), [**rgb\_map**(3alleg)](/rgb_map/3alleg.md), [**ex3d**(3alleg)](/ex3d/3alleg.md)
