This program tests various texture formats. The texture is mapped on a cube. Almost all formats (except C14X2, Z textures) can be checked. This sample demo only displays simple patterns and does not use the TPL file (the TPL version is tex-test02).
| Function | 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 |
|
GXLoadTexObj |
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.
03/01/2006 Initial version.