This program shows how to render a tiled texture map using an indirect texture. A regular texture contains a set of tile definitions. An indirect texture contains a tile map that places tiles on a given surface.
| Functions | Parameters | Description |
GXSetTexCoordScaleManually |
Texture coordinates | GX_TEXCOORD0 |
| enable | GX_TRUE |
|
| Scale S | 128 * 32 | |
| Scale T | 64 * 32 | |
GXSetNumIndStages |
Number of stages | 1 |
GXSetIndTexOrder |
Indirect stage | GX_INDTEXSTAGE0 |
| Texture coordinates | GX_TEXCOORD0 |
|
| Texture map | GX_TEXMAP1 |
|
GXSetIndTexCoordScale |
Indirect stage | GX_INDTEXSTAGE0 |
| S scale | GX_ITS_32 |
|
| T scale | GX_ITS_32 |
|
GXSetTevIndTile |
TEV Stage | GX_TEVSTAGE1 |
| Indirect stage | GX_INDTEXSTAGE0 |
|
| Tile size S | 32 | |
| Tile size T | 32 | |
| Tile spacing S | 32 | |
| Tile spacing T | 32 | |
| Indirect texture format | GX_ITF_4 |
|
| Indirect texture matrix | GX_ITM_0 |
|
| Indirect bias select | GX_ITB_NONE |
|
| Bump alpha select | GX_ITBA_OFF |
PAUSE exits the test.
The L and R Buttons rotate the image.
The Control Stick translates the image. The A and B Buttons zoom in and zoom out.


$REVOLUTION_SDK_ROOT/dvddata/gxTests/g2d-00.tpl
2006/03/01 Initial version.
CONFIDENTIAL