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

# POLYTYPE\_FLAT(3alleg)

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**(3alleg)](/polygon3d/3alleg.md), [**drawing\_mode**(3alleg)](/drawing_mode/3alleg.md), [**ex3d**(3alleg)](/ex3d/3alleg.md), [**excamera**(3alleg)](/excamera/3alleg.md)
