---
name: "POLYTYPE_FLAT"
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_FLAT/3alleg4"
---

# POLYTYPE\_FLAT(3alleg4)

Polygon rendering mode type Allegro game programming library.

## NAME

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

## SYNOPSIS

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

**#define POLYTYPE\_FLAT**

## DESCRIPTION

A simple flat shaded polygon, taking the color from the \`c' value of the first vertex. This polygon type is affected by the drawing\_mode() function, so it can be used to render XOR or translucent polygons.

## SEE ALSO

**polygon3d**(3alleg4), **drawing\_mode**(3alleg4), **ex3d**(3alleg4), **excamera**(3alleg4)
