GXSetChanMatColor

Syntax

#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 is set using the GXSetChanCtrl function. For GX_SRC_REG, it is used on a channel basis.

See Also

GXSetChanAmbColor

Revision History

2006/03/01 Initial version.


CONFIDENTIAL