#include <revolution/gx.h> void* GXGetTexObjData( const GXTexObj* obj );
obj |
Pointer to a texture object. |
|---|
Physical pointer to texture data.
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.
GXInitTexObj, GXInitTexObjCI, GXInitTexObjData
2006/03/01 Initial version.
CONFIDENTIAL