GXGetTexObjData

Syntax

#include <revolution/gx.h>

void* GXGetTexObjData( const GXTexObj* obj );

Arguments

obj Pointer to a texture object.

Return Values

Physical pointer to texture data.

Description

This function returns a pointer to the texture data described by the texture object obj.

Note: The returned pointer is a physical address.

You can use the OSPhysicalToCached or OSPhysicalToUncached function to convert the pointer into one that the CPU can use to reference the data being pointed to. If the pointer will only be passed back to the GXInitTexObj function (or a similar function), then the address need not be converted.

Use the GXInitTexObj, GXInitTexObjCI or GXInitTexObjData function to initialize the texture pointer.

See Also

GXInitTexObj, GXInitTexObjCI, GXInitTexObjData

Revision History

2006/03/01 Initial version.


CONFIDENTIAL