gSPLightColor

gSPLightColor [Macro]

Function

gSPLightColor

Changes the color of the specified light

Syntax

#include <ultra64.h>        /* gbi.h */
gSPLightColor(Gfx *gdl, Lightnum, u32 packedcolor)
gsSPLightColor(         Lightnum, u32 packedcolor)

Arguments

gdl
the display list pointer.
Lightnum
the light number whose color is being modified:
LIGHT_1 (First light)
LIGHT_2 (Second light)
:
LIGHT_8 (Eighth liight)
packedcolor
the new light color (32-bit value 0xRRGGBB??)
(?? is ignored)

Description

Changes the color of the specified light without using DMA. (As a result, no extra memory is required.) To read about the use of light colors, see Section 11.7.3.6 "Note on Material Properties" in the N64 Online Programming Manual.

See Also

gdSPDefLights, gSPLight, gSPSetLightsM

Revision History

02/01/99 Entirely revised.