tev-swap

Description

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.

Coverage

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

Operation Method

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.

Snapshot

Normal setting.

tev-swap-0.jpg (45549 bytes)

Red component is broadcasted to each of RGB channels.

tev-swap-1.jpg (35934 bytes)

More complicated component swapping.

tev-swap-2.jpg (38900 bytes)

Required Data Files

$REVOLUTION_SDK_ROOT/dvddata/gxTests/tex-02/rgba8_1.tpl

Revision History

03/01/2006 Initial version.