If the function argument is named
|
and its type is
|
then these constants are valid values
|
and these are the consequences of choosing that value.
|
tmu
|
GrChipID_t
|
GR_TMU0
GR_TMU1
GR_TMU2
|
Selects the target TMU. The constant names it.
|
smallLOD
largeLOD
thisLOD
|
GrLOD_t
|
GR_LOD_256
GR_LOD_128
GR_LOD_64
GR_LOD_32
GR_LOD_16
GR_LOD_8
GR_LOD_4
GR_LOD_2
GR_LOD_1
|
The number in the constant is the largest of the texture. The aspect ratio determines the smaller dimension.
|
aspectRatio
|
GrAspectRatio_t
|
GR_ASPECT_8x1
GR_ASPECT_4x1
GR_ASPECT_2x1
GR_ASPECT_1x1
GR_ASPECT_1x2
GR_ASPECT_1x4
GR_ASPECT_1x8
|
The constant sets the aspect ratio of the textures in a mipmap.
|
format
|
GrTextureFormat_t
|
GR_TEXFMT_RGB_332
GR_TEXFMT_YIQ_422
GR_TEXFMT_ALPHA_8
GR_TEXFMT_INTENSITY_8
GR_TEXFMT_ALPHA_INTENSITY_44
GR_TEXFMT_P_8
GR_TEXFMT_ARGB_8332
GR_TEXFMT_AYIQ_8422
GR_TEXFMT_RGB_565
GR_TEXFMT_ARGB_1555
GR_TEXFMT_ARGB_4444
GR_TEXFMT_ ALPHA_INTENSITY_88
GR_TEXFMT_AP_88
|
See Table Managing Texture Memory.1 for a description of the texture formats.
|
evenOdd
|
FxU32
|
GR_MIPMAPLEVELMASK_EVEN
GR_MIPMAPLEVELMASK_ODD
GR_MIPMAPLEVELMASK_BOTH
|
Even LODs are GR_LOD_256, GR_LOD_64, GR_LOD_16, GR_LOD_4, and GR_LOD_1.
Odd LODs are GR_LOD_128, GR_LOD_32, GR_LOD_8, and GR_LOD_2.
|
range
|
GrTexBaseRange_t
|
GR_TEXBASE_256
GR_TEXBASE_128
GR_TEXBASE_64
GR_TEXBASE_32_TO_1
|
Specifies the base register when using more than one. A mipmap can be broken into four fragments. The number in the constant corresponds to the LOD number.
|
tableType
table
|
GrTexTable_t
|
GR_TEX_NCC0
GR_TEX_NCC1
GR_TEX_PALETTE
|
Each TMU can have two NCC tables and a palette. Load them one at a time with a general purpose routine.
|
mipmapMode
mode
|
GrMipMapMode_t
|
GR_MIPMAP_DISABLE
GR_MIPMAP_NEAREST
GR_MIPMAP_NEAREST_DITHER
|
Specifies the kind of mipmapping to perform.
|