GXSetTevSwapModeTable

Syntax

#include <revolution/gx.h>

void GXSetTevSwapModeTable(
    GXTevSwapSel   id,
    GXTevColorChan red,
    GXTevColorChan green,
    GXTevColorChan blue,
    GXTevColorChan alpha );

Arguments

id Which entry (row) in the table is being modified. Accepted values are: GX_TEV_SWAP0, GX_TEV_SWAP1, GX_TEV_SWAP2, GX_TEV_SWAP3.
red Selects the input color component that should be mapped to the red output component. Accepted values are:
Name Input color component
GX_CH_RED Red
GX_CH_GREEN Green
GX_CH_BLUE Blue
GX_CH_ALPHA Alpha
green Selects the input color component that should be mapped to the green output component. Accepted values are similar to red.
blue Selects the input color component that should be mapped to the blue output component. Accepted values are similar to red.
alpha Selects the input color component that should be mapped to the alpha output component. Accepted values are similar to red.

Return Values

None.

Description

This function is for setting the TEV swap table. The swap table makes it possible to swap at the component level the rasterized color inputs and the texture color inputs in the TEV stage. The defaults for the swap table are as follows.

Entry Red component Green component Blue component Alpha Component Swap result
GX_TEV_SWAP0 GX_CH_RED GX_CH_GREEN GX_CH_BLUE GX_CH_ALPHA RGBA
GX_TEV_SWAP1 GX_CH_RED GX_CH_RED GX_CH_RED GX_CH_ALPHA RRRA
GX_TEV_SWAP2 GX_CH_GREEN GX_CH_GREEN GX_CH_GREEN GX_CH_ALPHA GGGA
GX_TEV_SWAP3 GX_CH_BLUE GX_CH_BLUE GX_CH_BLUE GX_CH_ALPHA BBBA

The table specifies for a single entry how an input color component is mapped to an output color component.

See Also

GXSetTevSwapMode

Revision History

2006/03/01 Initial version.


CONFIDENTIAL