gSP1Triangle.3p
869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.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)