gSPLightColor.3p
905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.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)