---
name: "POLYTYPE_PTEX"
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_PTEX"
---

# POLYTYPE\_PTEX(3alleg)

Polygon rendering mode type Allegro game programming library.

## NAME

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

## SYNOPSIS

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

**#define POLYTYPE\_PTEX**

## DESCRIPTION

A perspective-correct texture mapped polygon. This uses the \`z' value from the vertex structure as well as the u/v coordinates, so textures are displayed correctly regardless of the angle they are viewed from. Because it involves division calculations in the inner texture mapping loop, this mode is a lot slower than POLYTYPE\_ATEX, and it uses floating point so it will be very slow on anything less than a Pentium (even with an FPU, a 486 can't overlap floating point division with other integer operations like the Pentium can).

## SEE ALSO

[**polygon3d**(3alleg)](/polygon3d/3alleg.md), [**POLYTYPE\_ATEX**(3alleg)](/POLYTYPE_ATEX/3alleg.md), [**ex3d**(3alleg)](/ex3d/3alleg.md)
