al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
gSP1Triangle [Macro]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
It 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. Caution: 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 2/1/1999 Completely rewritten.
|