This program tests various texture formats. The texture is mapped on a cube. Almost all formats (except C14X2 and Z textures) can be tested. This sample demo only displays simple patterns and does not use the TPL file (the TPL version is tex-test02).
| 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_C4, GX_TF_C8 |
|
| Wrap mode (s, t) | Always GX_REPEAT |
|
| Mipmap | Always GX_FALSE |
|
| TLUT name | GX_TLUT0, GX_TLUT1 |
|
|
Destination texture name. | Always GX_TEXMAP0 |
GXInitTlutObj |
Pointer to data. | Appropriate value |
| Format | Always GX_TL_RGB5A3 |
|
| Number of Entries | Always 256 | |
GXLoadTlut |
Destination TLUT name. | GX_TLUT0, GX_TLUT1 |
GXSetTevOp |
TEV stage ID | Always GX_TEVSTAGE0 |
| Operation mode | GX_REPLACE, GX_DECAL |
START exits the test.
The Control Stick rotates the cube.
The C Stick zooms in/out.
The A Button changes the texture.
The B Button toggles the TEV mode (for checking the alpha map).
I4 Texture

IA4 Texture

RGB5A3 Texture

Compressed Texture

None.
2006/03/01 Initial version.
CONFIDENTIAL