This program tests texture preloading. Various textures are mapped on animating cubes. All textures used in this test are preloaded into TMEM, and therefore, never use cache regions.
| Functions | Parameters | Description |
GXInitTexObj |
Pointer to image data. | Appropriate value. |
| Width and height | Power of 2 only. | |
| Format | GX_TF_I4, GX_TF_I8, GX_TF_IA4, GX_TF_IA8, GX_TF_RGB565, GX_TF_RGB5A3, GX_TF_RGBA8, GX_TF_CMPR |
|
| Wrap mode (s, t). | Always GX_REPEAT. |
|
| Mipmap | Always GX_FALSE. |
|
GXInitTexObjCI |
Pointer to image data. | Appropriate value. |
| Width and height | Power of 2 only. | |
| Format | GX_TF_C8 |
|
| Wrap mode (s, t). | Always GX_REPEAT. |
|
| Mipmap | Always GX_FALSE. |
|
| TLUT name | GX_TLUT0, GX_TLUT1 |
|
GXPreLoadEntireTexture |
Texture region | Appropriate GXTexRegion object. |
GXLoadTexObjPreLoaded |
Texture region | The correct region where the texture data is preloaded. |
| Destination texture name. | GX_TEXMAP0, GX_TEXMAP1 |
|
GXInitTexPreloadRegion |
TMEM address (even/odd) | Appropriate lower bank address (even) Appropriate higher bank address (odd) (In the case of CI, the lower bank address is set to both.)) |
| Texture region size (even/odd) | Appropriate value(Same as texture size.) | |
GXInitTlutObj |
Pointer to data. | Appropriate value. |
| Format | GX_TL_RGB565, GX_TL_RGB5A3 |
|
| Number of Entries | Always 256. | |
GXLoadTlut |
Destination TLUT name. | GX_TLUT0, GX_TLUT1 |
GXGetTexBufferSize |
Width and height | Power of 2 only. |
| Format | GX_TF_I4, GX_TF_I8, GX_TF_IA4, GX_TF_IA8, GX_TF_RGB565, GX_TF_RGB5A3, GX_TF_RGBA8, GX_TF_CMPR, GX_TF_C8 |
|
| Mipmap | GX_FALSE / GX_TRUE |
|
| Max LOD | Various values. | |
|
Number of TEV Stages | 2 |
GXSetTevOp |
TEV stage ID. | GX_TEVSTAGE0, GX_TEVSTAGE1. |
| Operation mode | GX_REPLACE for stage 0GX_DECAL for stage 1 |
START exits the demo.
While the A Button is pressed, the animation is stopped.

$REVOLUTION_SDK_ROOT/dvddata/gxTests/tex-08.tpl
2006/03/01 Initial version.
CONFIDENTIAL