gSP1Triangle

gSP1Triangle [Macro]

Function

gSP1Triangle

Draws 1 triangle

Syntax

#include <ultra64.h>        /* gbi.h */
gSP1Triangle(Gfx *gdl, s32 v0, s32 v1, s32 v2, s32 flag)
gsSP1Triangle(         s32 v0, s32 v1, s32 v2, s32 flag)

Arguments

gdl
Display list pointer
v0, v1, v2
Vertex buffer index
F3DEX
F3DEX.NoN
F3DLX
F3DLX.NoN
L3DEX
0~31
F3DLX.Rej 0~63
F3DLP.Rej 0~79

* For F3DEX2 microcode group (F3DEX2/F3DLX2/F3DLP2/L3DEX2), the values are as follows:
F3DEX2
F3DEX2.NoN
F3DLX2
F3DLX2.NoN
L3DEX2
0~31
F3DEX2.Rej
F3DLX2.Rej
0~63
flag
Triangle face flag 0~2

Description

Generates a single triangle face (using the vertices v0, v1, and v2) in the internal vertex buffer loaded by the gSPVertex macro. The flag (0, 1, or 2) identifies which of the three vertices contains the normal or the color for the face (for flat shading). For details, see Section 11.9.1 "Triangles" in the N64 Programming Manual.

Note

The actual type of triangle drawn (shaded, textured, Z-Buffered, and so on) is determined by the current RSP rendering state.

See Also

gSP2Triangles, gSPVertex

Revision History

02/01/99 Entirely revised.