1triangle3d(3)                   Allegro manual                   triangle3d(3)
2
3
4

NAME

6       triangle3d,  triangle3d_f - Draws a 3d triangle onto the specified bit‐
7       map. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void triangle3d(BITMAP *bmp, int type, BITMAP *tex, V3D *v1, *v2, *v3);
14
15       void triangle3d_f(BITMAP *bmp, int type, BITMAP *tex, V3D_f  *v1,  *v2,
16       *v3);
17

DESCRIPTION

19       Draw  3d  triangles, using either fixed or floating point vertex struc‐
20       tures.  Unlike quad3d[_f](), triangle3d[_f]() functions are  not  wrap‐
21       pers  of  polygon3d[_f](). The triangle3d[_f]() functions use their own
22       routines taking into account the constantness of the gradients.  There‐
23       fore  triangle3d[_f](bmp,  type,  tex, v1, v2, v3) is faster than poly‐
24       gon3d[_f](bmp, type, tex, 3, v[]).
25
26       Read the beginning of chapter "Polygon rendering" for a list of render‐
27       ing types you can use with this function.
28
29

SEE ALSO

31       polygon3d(3), quad3d(3), triangle(3)
32
33
34
35Allegro                          version 4.4.2                   triangle3d(3)
Impressum