This program demonstrates the TEV swap mode. In this demo, you can just apply some color component swapping effect to sample images and view results.
| Functions | Parameters | Description |
GXSetTevSwapMode |
TEV stage ID. | GX_TEVSTAGE0 |
| Swap mode for rasterized color. | GX_TEV_SWAP0 - GX_TEV_SWAP3 | |
| Swap mode for texture color. | GX_TEV_SWAP0 - GX_TEV_SWAP3 | |
GXSetTevSwapModeTable |
Swap mode table ID. | GX_TEV_SWAP0 - GX_TEV_SWAP3 |
| Color input mapped to red output. | Any combination of GX_CH_RED, GX_CH_GREEN, GX_CH_BLUE, GX_CH_ALPHA. | |
| Color input mapped to green output. | ||
| Color input mapped to blue output. | ||
| Color input mapped to alpha output. | ||
GXSetNumTevStages |
Number of TEV stages | Always 1. |
GXSetTevOp |
TEV stage ID. | Always GX_TEVSTAGE0. |
| TEV operation | GX_PASSCLR, GX_REPLACE | |
GXSetBlendMode |
The blend mode. | GX_BM_BLEND |
| src factor | GX_BL_ONE, GX_BL_ZERO | |
| dst factor | GX_BL_ZERO, GX_BL_INVSRCALPHA | |
| op | N/A |
PAUSE exits the test. The main stick moves the cursor. The A Button changes the value specified by the cursor. The B Button changes the sample image. The Y button toggles the alpha blending mode ON/OFF.
Normal setting.

Red component is broadcasted to each of RGB channels.

More complicated component swapping.

$REVOLUTION_SDK_ROOT/dvddata/gxTests/tex-02/rgba8_1.tpl
03/01/2006 Initial version.