gSP1Triangle.3p 869 Bytes
.TH gSP1Triangle 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
gSP1Triangle, gsSP1Triangle
\- single triangle face command
.SH C SPECIFICATION
.nf
\f3#include "gbi.h"

gSP1Triangle(Gfx *gdl, int v0, int v1, int v2, int flag)

gsSP1Triangle(int v0, int v1, int v2, int flag)
\fP
.fi
.SH PARAMETERS
.TP 10
.I *gdl
graphics display list pointer.
.TP
.I v0, v1, v2
vertex cache indices.
.TP
.I flag
triangle face flag.
.SH DESCRIPTION
This command generates one triangle,
using the vertices v0, v1, and v2,
in the internal vertex buffer loaded by
.IR gSPVertex (3P).
The
.I flag
should be either 0, 1, or 2 to identify which of the three vertices
contains the normal or the color for the face (for flat shading).

The actual type of triangle drawn (shaded, textured, z-buffered, etc.)
is determined by the current RSP rendering state.
.SH SEE ALSO
.IR gSPVertex (3P)