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
|
gSPNumLightsFormat#include "gbi.h" gSPNumLights(Gfx *gdl, int n) gsSPNumLights(int n)Arguments
It tells the RSP how many lights are to be used in lighting calculations. Use it in conjunction with the gSPLight macro, which actually loads the lights to be used. Note that any time the lighting state is altered with gSPLight the gSPNumLights macro must be used to tell the RSP that the lights have been changed (even if the number of lights has not changed). When only ambient lights are used, use NUMLIGHTS_0, set the first light to be black and the second light to be the ambient color. The best way to define static lights is to use the gdSPDefLights macro followed by the gSPSetLights macro (instead of using gSPLight and gSPNumLights explicitly). See Also gdSPDefLights gSPLight gSPSetLights
|