GXGetTexObjAll

Syntax

#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 the GXGetTexObjData function 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 flag enabling mipmaps.

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 the GXInitTexObj function, or for color index format textures, the GXInitTexObjCI function.

See Also

GXInitTexObjCI, GXInitTexObjLOD, GXLoadTexObj

Revision History

2006/03/01 Initial version.


CONFIDENTIAL