GXGetTexObjAll

C Specification

#include <revolution/gx.h>
void GXGetTexObjAll(
const GXTexObj* obj,
void**          image_ptr,
u16*            width,
u16*            height,
GXTexFmt*       format,
GXTexWrapMode*  wrap_s,
GXTexWrapMode*  wrap_t,
GXBool*         mipmap );

Arguments

obj Pointer to a texture object.
image_ptr Returns a physical pointer to the image data for a texture. See GXGetTexObjData for details.
width Returns the width of the texture or LOD 0 for mipmaps.
height Returns the height of the texture or LOD 0 for mipmaps.
format Returns the texel format.  
wrap_s Returns the mode which describes how texture coordinates will be wrapped in the s direction.
wrap_t Returns the mode which describes how texture coordinates will be wrapped in the t direction.
mipmap returns the mipmap enable flag.

Return Values

None.

Description

This function returns the parameters described by a texture object. 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 GXInitTexObj or, for color index format textures, GXInitTexObjCI.

See Also

GXInitTexObj
GXInitTexObjCI
GXInitTexObjLOD
GXLoadTexObj

Revision History

03/01/2006 Initial version.