tex-fmt-cube

Description

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).

Coverage

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
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

Using the Demo

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).

Snapshot

I4 Texture

tex-fmt-cube-0.jpg (9227 bytes)

IA4 Texture

tex-fmt-cube-2.jpg (11326 bytes)

RGB5A3 Texture

tex-fmt-cube-5.jpg (8073 bytes)

Compressed Texture

tex-fmt-cube-7.jpg (11983 bytes)

Data Files Required

None.

Revision History

2006/03/01 Initial version.


CONFIDENTIAL