N64® Functions Menu

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

Nintendo® Confidential

   

gSP1Triangle

Format
#include "gbi.h"

gSP1Triangle(Gfx *gdl,
   int v0, int v1,
   int v2, int flag)
gsSP1Triangle(int v0,
   int v1, int v2,
   int flag)
Arguments
  • gdl is the pointer to the graphics display list
  • v0, v1, v2 specify the vertex cache indices.
  • flag is the triangle face flag
What This Macro Does
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).

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

See Also
gSPVertex



Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated January 1998