#include <revolution/gx.h>void* GXGetTexObjData( const GXTexObj* obj ); |
Pointer to a texture object |
Physical pointer to texture data.
This function returns a pointer to the texture data described by texture object obj.
Note: The returned pointer is a physical address.
You can use the macros OSPhysicalToCached or OSPhysicalToUncached 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 GXInitTexObj (or a similar function), the address does need not to be converted.
Use GXInitTexObj, GXInitTexObjCI, or GXInitTexObjData to initialize the texture pointer.
GXInitTexObj
GXInitTexObjCI
GXInitTexObjData
03/01/2006 Initial version.