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

   

gSPLightColor

Format
#include "gbi.h"

gSPLightColor(Gfx *gdl,
   int Lightnum,
   u32 packedcolor)
gsSPLightColor(int Lightnum,
   u32 packedcolor)
Arguments
  • gdl is the pointer to the graphics display list
  • Lightnum specifies the light that is to have its color modified (LIGHT_1, LIGHT_2, ..., or LIGHT_8). If n lights are on then LIGHT_1 through LIGHT_n are their light colors and LIGHT_n+1 is the ambient light color
  • packedcolor is the new light color. Packed 32-bit number 0xRRGGBB?? where ?? can be anything (it is ignored)
What This Macro Does
It changes the color of the specified light without using DMA, so no extra memory is required.

See Also
gdSPDefLights
gSPSetLights
gSPLight



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