GXGetTexRegionAll

C Specification

#include <revolution/gx.h>
void GXGetTexRegionAll(
    const GXTexRegion*  region,
    GXBool*             is_32b_mipmap,
    u32*                tmem_even,
    u32*                size_even,
    u32*                tmem_odd,
    u32*                size_odd );

Arguments

region Pointer to a GXTexRegion.
is_cached Returns whether this is a cached region or a preloaded region.
is_32b_mipmap Returns whether or not the cached region is intended for a 32-bit (RGBA8) mipmap texture.
tmem_even Returns the texture memory address for the even LODs or for planar (non-32b) textures.
size_even Returns the texture memory region size (in bytes) for the even LODs.

Note: The value is not doubled for 32-bit mipmap textures.
tmem_odd Returns the texture memory address for the odd LODs (if any).
size_odd Returns the texture memory region size (in bytes) for the odd LODs.

Note: The value is not doubled for 32-bit mipmap textures.

Return Values

None.

Description

This function returns all the parameters that describe a texture memory region (GXTexRegion structure) object. This object describes how texture memory needs to be used. There are two types of texture memory region objects. The first is a cache texture (created by GXInitTexCacheRegion), while the other is a preload texture (created byGXInitTexPreLoadRegion).

See Also

GXInitTexCacheRegion
GXInitTexPreLoadRegion

Revision History

2006/03/01 Initial version


CONFIDENTIAL