
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
|
 |
gSPLightColor
Syntax
#include <ultra64.h> /* gbi.h */
gSPLightColor(Gfx *gdl, Lightnum, u32 packedcolor)
gsSPLightColor(Lightnum, u32 packedcolor)
Arguments
- gdl is the display list pointer.
- Lightnum is the light number whose color is being modified:
LIGHT_1 (First light)
LIGHT_2 (Second light)
:
LIGHT_8 (Eighth light)
- packedcolor is the new light color (32-bit value 0xRRGGBB??)
("??" is ignored)
Explanation
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
2/1/1999 Completely rewritten.
|
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 March 1999
|
|