GXSetChanAmbColor

C Specification

#include <revolution/gx.h>
void GXSetChanAmbColor(
GXChannelID   chan,
GXColor       amb_color );

Arguments

chan Color channel. Accepted values are:
Name Channel where the ambient color is updated
GX_COLOR0A0 Color channel 0 + Alpha channel 0
GX_COLOR0 Color channel 0 (only RGB components are used)
GX_ALPHA0 Alpha channel 0 (only Alpha component is used)
GX_COLOR1A1 Color channel 1 + Alpha channel 1
GX_COLOR1 Color channel 1 (only RGB components are used)
GX_ALPHA1 Alpha channel 1 (only Alpha component is used)
amb_color Ambient color

Return Values

None.

Description

This function sets the ambient color register for color channel chan. This color is used by the channel as the ambient color if the ambient source, set by GXSetChanCtrl, is GX_SRC_REG.

See Also

GXSetChanMatColor

Revision History

03/01/2006 Initial version.