This program tests multiple TEV stages using the re-ordering feature. Processes up to 8 TEV stages. Ordering parameters (for texture maps, texture coordinates, and color channel inputs) and TEV operation modes can be specified in each stage.
| Functions | Parameters | Description |
GXInitTexObj |
Pointer to image data. | Appropriate value. |
| Width and height | Fixed value. | |
| format | GX_TF_RGBA8 |
|
| Wrap mode (s, t). | Always GX_REPEAT. |
|
| Mipmap | Always GX_FALSE. |
|
|
Destination texture name | GX_TEXMAP0 - GX_TEXMAP7 |
GXSetNumChans |
Number of color channels. | 0, 1, 2 |
GXSetNumTexGens |
number of texture coordinates. | 0, 8 |
GXSetTexCoordGen |
Texture coordinate ID | GX_TEXCOORD0 - GX_TEXCOORD7 |
| Type of texture coordinate generation | Always GX_TG_MTX2x4. |
|
| Source parameter of texture coordinate generation. | Always GX_TG_TEX0. |
|
| Matrix index | Appropriate matrix index | |
|
Number of TEV Stages | 1 - 8 |
GXSetTevOp |
TEV stage ID. | GX_TEVSTAGE0 - GX_TEVSTAGE7 |
| Operation Mode | GX_PASSCLR, GX_REPLACE, GX_DECAL, GX_MODULATE, GX_BLEND |
|
|
TEV stage ID. | GX_TEVSTAGE0 - GX_TEVSTAGE7, |
| Texture coordinate ID | GX_TEXCOORD0 - GX_TEXCOORD7, GX_TEXCOORD_NULL |
|
| Texture map ID | GX_TEXMAP0 - GX_TEXMAP7, GX_TEXMAP_NULL |
|
| Color channel ID | GX_COLOR0A0, GX_COLOR1A1, GX_COLOR_NULL |
End the test with START.
The Control Stick moves the cursor.
The X and Y Buttons change the parameter value pointed to by the cursor.
The A Button stops the animation.
The B Button changes the channel color.
Eight-layered texture using the GX_DECAL mode.

GX_PASSCLR and GX_REPLACE.

GX_BLEND and GX_MODULATE.

Random ordering

$REVOLUTION_SDK_ROOT/dvddata/gxTests/tev-02.tpl
2008/07/22 Added information to Method of Operation.
2006/03/01 Initial version.
CONFIDENTIAL