GXSetTevKColorSel

Syntax

#include <revolution/gx.h>

void GXSetTevKColorSel(
    GXTevStageID     stage,
    GXTevKColorSel   sel );

Arguments

stage Name of the TEV stage. Accepted values are: GX_TEVSTAGE0, GX_TEVSTAGE1, GX_TEVSTAGE2 through GX_TEVSTAGE15.
sel   Selects the constant color to be used for this stage. Accepted values are:
Name Constant Color Source
GX_TEV_KCSEL_K0 Constant color register 0 (RGB)
GX_TEV_KCSEL_K1 Constant color register 1 (RGB)
GX_TEV_KCSEL_K2 Constant color register 2 (RGB)
GX_TEV_KCSEL_K3 Constant color register 3 (RGB)
The following sets a single value to all three components.
GX_TEV_KCSEL_K0_R Constant color register 0 (RRR)
GX_TEV_KCSEL_K1_R Constant color register 1 (RRR)
GX_TEV_KCSEL_K2_R Constant color register 2 (RRR)
GX_TEV_KCSEL_K3_R Constant color register 3 (RRR)
GX_TEV_KCSEL_K0_G Constant color register 0 (GGG)
GX_TEV_KCSEL_K1_G Constant color register 1 (GGG)
GX_TEV_KCSEL_K2_G Constant color register 2 (GGG)
GX_TEV_KCSEL_K3_G Constant color register 3 (GGG)
GX_TEV_KCSEL_K0_B Constant color register 0 (BBB)
GX_TEV_KCSEL_K1_B Constant color register 1 (BBB)
GX_TEV_KCSEL_K2_B Constant color register 2 (BBB)
GX_TEV_KCSEL_K3_B Constant color register 3 (BBB)
GX_TEV_KCSEL_K0_A Constant color register 0 (AAA)
GX_TEV_KCSEL_K1_A Constant color register 1 (AAA)
GX_TEV_KCSEL_K2_A Constant color register 2 (AAA)
GX_TEV_KCSEL_K3_A Constant color register 3 (AAA)
GX_TEV_KCSEL_8_8
GX_TEV_KCSEL_1
fixed constant 1
GX_TEV_KCSEL_7_8 fixed constant 7/8
GX_TEV_KCSEL_6_8
GX_TEV_KCSEL_3_4
fixed constant 3/4
GX_TEV_KCSEL_5_8 fixed constant 5/8
GX_TEV_KCSEL_4_8
GX_TEV_KCSEL_1_2
fixed constant 1/2
GX_TEV_KCSEL_3_8 fixed constant 3/8
GX_TEV_KCSEL_2_8
GX_TEV_KCSEL_1_4
fixed constant 1/4
GX_TEV_KCSEL_1_8 fixed constant 1/8

Return Values

None.

Description

This function selects the color input (constant) to be used on the given TEV stage. The constant color input is only used when GX_CC_KONST is selected as that TEV stage input. It can be used for one or more inputs. but only one constant color input can be used for one TEV stage.

See Also

GXSetTevColorIn, GXSetTevKColor

Revision History

2006/03/01 Initial version.


CONFIDENTIAL