ind-tile-test

Description

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.

Coverage

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

Using the Demo

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.

Snapshot

ind-tile-test-0.jpg (36084 bytes)

ind-tile-test-1.jpg (25486 bytes)

Required Data Files

$REVOLUTION_SDK_ROOT/dvddata/gxTests/g2d-00.tpl

Revision History

2006/03/01 Initial version.


CONFIDENTIAL