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 |
|
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 |
|
|
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 and GX_CH_ALPHA. |
|
| Color input mapped to green output. | ||
| Color input mapped to blue output. | ||
| Color input mapped to alpha output. | ||
|
Number of TEV Stages | Always 1 |
GXSetTevOp |
TEV stage ID | Always GX_TEVSTAGE0 |
| TEV operation | GX_PASSCLR, GX_REPLACE |
|
|
Blend mode | GX_BM_BLEND |
| src factor | GX_BL_ONE, GX_BL_ZERO |
|
| dst factor | GX_BL_ZERO, GX_BL_INVSRCALPHA |
|
| Logic calculations | 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 and off.
Normal setting.

The red component is broadcast to each of RGB channels.

More complicated component swapping.

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