---
name: "quad3d"
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/quad3d"
---

# quad3d(3alleg)

Draws a 3d quad onto the specified bitmap. Allegro game programming library.

## NAME

quad3d, quad3d\_f - Draws a 3d quad onto the specified bitmap. Allegro game programming library.

## SYNOPSIS

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

**void quad3d(BITMAP \*bmp, int type, BITMAP \*tex, V3D \*v1, \*v2, \*v3, \*v4);**

**void quad3d\_f(BITMAP \*bmp, int type, BITMAP \*tex, V3D\_f \*v1, \*v2, \*v3, \*v4);**

## DESCRIPTION

Draw 3d quads, using either fixed or floating point vertex structures.  These are equivalent to calling polygon3d(bmp, type, tex, 4, v\[\]) or polygon3d\_f(bmp, type, tex, 4, v\[\]).

Read the beginning of chapter "Polygon rendering" for a list of rendering types you can use with this function.

## SEE ALSO

[**polygon3d**(3alleg)](/polygon3d/3alleg.md), [**triangle3d**(3alleg)](/triangle3d/3alleg.md), [**ex3d**(3alleg)](/ex3d/3alleg.md)
