GXGetTexObjData

C Specification

#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 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.

See Also

GXInitTexObj
GXInitTexObjCI
GXInitTexObjData

Revision History

2006/03/01 Initial version.


CONFIDENTIAL