GXSetChanMatColor

C Specification

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

Arguments

chan Color channel. Accepted values are:
Name Channel where the material 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)
mat_color Material color

Return Values

None.

Description

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

See Also

GXSetChanAmbColor

Revision History

03/01/2006 Initial version.