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 two 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 two values: GX_CLAMP, GX_WRAP, or GX_MIRROR. |
minFilter |
Filter mode when the texel/pixel ratio is ≤ 1.0. Takes the value of one of the following: 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 the value of one of the following: 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. The hardware uses MAX(min_lod, lod). Values range from 0.0 to 10.0. |
maxLOD |
Maximum LOD value. The hardware uses MIN(max_lod, lod). Values range from 0.0 to 10.0. |
unpacked |
Internal flag for unpacking files. |
06/20/2006 Initial version.