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

## gDPSetEnvColor [macro]

Syntax

    #include <ultra64.h> /* gbi.h */
    gDPSetEnvColor(Gfx *gdl, u32 r, u32 g, u32 b, u32 a)
    gsDPSetEnvColor(u32 r, u32 g, u32 b, u32 a)

Arguments

- gdl is the display list pointer.

- r is the red component of RGBA color (8-bit precision, 0~255).

- g is the green component of RGBA color (8-bit precision, 0~255).

- b is the blue component of RGBA color (8-bit precision, 0~255).

- a is the alpha component of RGBA color (8-bit precision, 0~255).

Explanation
Sets the RDP's environment color, which is used as an input source for linear interpolation by the color combiner (CC). The environment color register set by this macro becomes a general-purpose color register of the CC, expressing the environment color of the scene. It is also used for rendering a second specular highlight (Hilite2). The value in this environment color register determines the highlight color for Hilite2.

For details, please see Section 12.6.2, "CC Internal Color Registers," in the N64 Online Programming Manual.

See Also
gDPFillRectangle
gDPSetAlphaCompare
gDPSetCombineMode
gDPSetCycleType
gDPSetRenderMode

Revision History
2/1/99 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-1999
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last Updated April, 1999