typedef struct
{
u16 height;
u16 width;
u32 format;
Ptr data;
GXTexWrapMode wrapS;
GXTexWrapMode wrapT;
GXTexFilter minFilter;
GXTexFilter magFilter;
float LODBias;
u8 edgeLODEnable;
u8 minLOD;
u8 maxLOD;
u8 unpacked;
} TPLHeader, *TPLHeaderPtr;
Texture header structure that the TPL library uses.
height |
Height of the texture image in pixels. |
|---|---|
width |
Width of the texture image in pixels. |
format |
Texture image format. |
| data | Pointer to actual texture image data. |
wrapS |
Describes the wrapping method in the s-direction of the texture coordinates. Takes one of the following values: GX_CLAMP, GX_REPEAT, or GX_MIRROR. |
wrapT |
Describes the wrapping method in the t-direction of the texture coordinates. Takes one of the following values: GX_CLAMP, GX_WRAP, or GX_MIRROR. |
minFilter |
Filter mode when the texel/pixel ratio is ≤ 1.0. Takes one of the following values: GX_NEAR, GX_LINEAR, GX_NEAR_MIP_NEAR, GX_LIN_MIP_NEAR, GX_NEAR_MIP_LIN, or GX_LIN_MIP_LIN. |
magFilter |
Filter mode when the texel/pixel ratio is > 1.0. Takes one of the following values: GX_NEAR or GX_LINEAR. |
LODBias |
Bias to add to computed LOD value. |
edgeLODEnable |
For GX_TRUE, the LOD that uses the adjacent texel is calculated. Otherwise, the opposite angle is calculated.
|
minLOD |
Minimum LOD value. For hardware, MAX (midLOD, lod) is used. Values range from 0.0 to 10.0. |
maxLOD |
Maximum LOD value. For hardware, MIN (maxLOD, lod) is used. Values range from 0.0 to 10.0. | unpacked |
Internal flag for unpacking files. |
2006/06/20 Initial version.
CONFIDENTIAL