tex-fmt-tpl

Description

This program tests various texture formats. It can also test mipmap and odd-sized textures. This test loads TPL files with various formats and displays them sequentially.

Coverage

Functions Parameters Description
GXInitTexObj Pointer to image data. Appropriate.
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) H(Depends on tpl file)
Mipmap Always GX_FALSE.
TLUT name Always GX_TLUT0
GXLoadTexObj Destination texture name. Always GX_TEXMAP0.
GXInitTlutObj Pointer to data. Appropriate value.
Format Various? (Depends on tpl file).
Number of Entries Various? (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

Operation Method

The START button 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 to display. (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

Snapshot

I4 format, non mipmap.

tex-fmt-tpl-0.jpg (39473 bytes)

IA4 format, non mipmap.

tex-fmt-tpl-16.jpg (33900 bytes)

RGB565 format, mipmap.

tex-fmt-tpl-13.jpg (32969 bytes)

RGBA8 format, odd sized.

tex-fmt-tpl-20.jpg (7165 bytes)

Data Files Required

All .tpl files under $Revolution_SDK_ROOT/dvddata/gxTests/tex-02/.

Revision History

03/01/2006 Initial version.