---
name: "POLYTYPE_PTEX_LIT"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/POLYTYPE_ATEX_LIT/3alleg4"
---

# POLYTYPE\_PTEX\_LIT(3alleg4)

Polygon rendering mode type Allegro game programming library.

Part of [POLYTYPE\_ATEX\_LIT(3alleg4)](/POLYTYPE_ATEX_LIT/3alleg4.md).

## NAME

POLYTYPE\_ATEX\_LIT, POLYTYPE\_PTEX\_LIT - Polygon rendering mode type Allegro game programming library.

## SYNOPSIS

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

**#define POLYTYPE\_ATEX\_LIT**

**#define POLYTYPE\_PTEX\_LIT**

## DESCRIPTION

Like POLYTYPE\_ATEX and POLYTYPE\_PTEX, but the global color\_map table (for 256-color modes) or blender function (for non-MMX truecolor modes) is used to blend the texture with a light level taken from the \`c' value in the vertex structure. This must only be used after you have set up the color mapping table or blender functions!

## SEE ALSO

**polygon3d**(3alleg4), **POLYTYPE\_ATEX**(3alleg4), **POLYTYPE\_PTEX**(3alleg4), **color\_map**(3alleg4), **ex3d**(3alleg4)
