#include <revolution/gx.h>
void GXGetTexObjLODAll(
const GXTexObj* obj,
GXTexFilter* min_filt,
GXTexFilter* mag_filt,
f32* min_lod,
f32* max_lod,
f32* lod_bias,
GXBool* bias_clamp,
GXBool* do_edge_lod,
GXAnisotropy* max_aniso );
GXTexFilter GXGetTexObjMinFilt ( const GXTexObj* tex_obj );
GXTexFilter GXGetTexObjMagFilt ( const GXTexObj* tex_obj );
f32 GXGetTexObjMinLOD ( const GXTexObj* tex_obj );
f32 GXGetTexObjMaxLOD ( const GXTexObj* tex_obj );
f32 GXGetTexObjLODBias ( const GXTexObj* tex_obj );
GXBool GXGetTexObjBiasClamp( const GXTexObj* tex_obj );
GXBool GXGetTexObjEdgeLOD ( const GXTexObj* tex_obj );
GXAnisotropy GXGetTexObjMaxAniso ( const GXTexObj* tex_obj );
| obj, tex_obj | Pointers to a GXTexObj structure |
|---|---|
min_filt |
returns the reduction filter from the texture object |
mag_filt |
returns the magnification filter |
min_lod |
Returns the minimum LOD value |
max_lod |
Returns the maximum LOD value |
lod_bias |
Returns the LOD bias |
bias_clamp |
Returns the LOD bias clamping parameter |
do_edge_lod |
Returns edge LOD status |
max_aniso |
returns anisotropic filtering setting |
The GXGetTexObjLODAll function returns void. The other functions return data values as indicated by their names.
The GXGetTexObjLODAll function returns the LOD-related parameters described by a texture object. Also listed are functions to get each data item individually. Texture objects are used to describe all the parameters associated with a texture, including size, format, wrap modes, filter modes, etc. Texture objects are initialized using either the GXInitTexObj function, or for color index format textures, the GXInitTexObjCI function. The LOD-related parameters are set using the GXInitTexObjLOD function.
GXInitTexObj, GXGetTexObjAll, GXInitTexObjLOD
2006/03/01 Initial version.
CONFIDENTIAL