This program tests various texture formats. It can also test mipmap and odd-sized textures. This sample loads TPL files with various formats and displays them sequentially.
| Functions | Parameters | Description |
GXInitTexObj |
Pointer to image data | Appropriate value |
| Width and height | Various (includes odd size) | |
| 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). | ?(depends on tpl file) | |
| Mipmap | GX_TRUE / GX_FALSE |
|
GXInitTexObjCI |
Pointer to image data | Appropriate value |
| Width and height | Various (includes odd size) | |
| Format | GX_TF_C8 |
|
| Wrap mode (s, t). | ?(depends on tpl file) | |
| Mipmap | Always GX_FALSE |
|
| TLUT name | Always GX_TLUT0 |
|
|
Destination texture name. | Always GX_TEXMAP0 |
GXInitTlutObj |
Pointer to data. | Appropriate value |
| Format | Various values (depends on tpl file) | |
| Number of Entries | Various values (depends on tpl file) | |
GXLoadTlut |
Destination TLUT name. | GX_TLUT0 |
GXInvalidateTexAll |
(No parameter) | |
GXSetTevOp |
TEV stage ID | Always GX_TEVSTAGE0 |
| Operation mode | GX_REPLACE, GX_DECAL |
START exits the test.
The Control Stick rotates the textured box. The C Stick changes the scale of the box.
The B Button toggles the TEV mode (for checking the alpha map).
The A Button resets the scale and angle of the box.
The L and R Buttons change the TPL file shown. (The following is the list of TPL files that can be previewed.)
| No. | format | Size | Mipmap |
0 |
I4 | 1024 x 512 | N |
1 |
I4 | 1024 x 512 | Y |
2 |
I4 | 251 x 257 | N |
3 |
I8 | 1024 x 512 | N |
4 |
I8 | 1024 x 512 | Y |
5 |
I8 | 251 x 257 | N |
6 |
IA4 | 1024 x 512 | N |
7 |
IA4 | 1024 x 512 | Y |
8 |
IA4 | 251 x 257 | N |
9 |
IA8 | 1024 x 512 | N |
10 |
IA8 | 1024 x 512 | Y |
11 |
IA8 | 251 x 257 | N |
12 |
RGB565 | 1024 x 512 | N |
13 |
RGB565 | 1024 x 512 | Y |
14 |
RGB565 | 251 x 257 | N |
15 |
RGB5A3 | 1024 x 512 | N |
16 |
RGB5A3 | 1024 x 512 | Y |
17 |
RGB5A3 | 251 x 257 | N |
18 |
RGBA8 | 1024 x 512 | N |
19 |
RGBA8 | 1024 x 512 | Y |
20 |
RGBA8 | 251 x 257 | N |
21 |
Compressed | 1024 x 512 | N |
22 |
Compressed | 1024 x 512 | Y |
23 |
Compressed | 252 x 256 | N |
24 |
C8(RGB565) | 1024 x 512 | N |
25 |
C8(RGB5A3) | 1024 x 512 | N |
I4 format, non mipmap.

IA4 format, non mipmap.

RGB565 format, mipmap.

RGBA8 format, odd sized.

All .tpl files are under $Revolution_SDK_ROOT/dvddata/gxTests/tex-02/.
2006/03/01 Initial version.
CONFIDENTIAL