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 coordinate. GX_TEXCOORD0.
enable GX_TRUE
scale S 128*32
scale T 64*32
GXSetNumIndStages number of stages 1
GXSetIndTexOrder indirect stage GX_INDTEXSTAGE0.
Texture coordinate. 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

Operation Method

START 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

03/01/2006 Initial version.