gSPLightColor.3p 905 Bytes
.TH gSPLightColor 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
gSPLightColor, gsSPLightColor
\- Quickly change light colors in the RSP.
.SH C SPECIFICATION
.nf
\f3#include "gbi.h"

gSPLightColor(Gfx *gdl, int Lightnum, u32 packedcolor)

gsSPLightColor(int Lightnum, u32 packedcolor)
.fi
\fP
.SH PARAMETERS
.TP 10
.I *gdl
graphics display list pointer.
.TP
.I Lightnum
Light whose color will be modified.  Should be 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.  
.TP
.I packedcolor
New light color.  Packed 32 bit number 0xRRGGBB?? where ?? can be anything (ignored).
.TP

.SH DESCRIPTION
The
.I gSPLightColor (3P)
command changes the color of the specified light without using a DMA (thus no
extra memory is required).
.SH SEE ALSO
.IR gdSPDefLights (3P)
.IR gSPSetLights (3P)
.IR gSPLight (3P)