1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>GXGetTexObjData</title> 10</head> 11 12<body> 13 14<h1 align="left">GXGetTexObjData</h1> 15 16<h2>C Specification</h2> 17 18<dl> 19<dd><pre><CODE>#include <revolution/gx.h></CODE></pre></dd> 20<dd><pre><CODE>void* GXGetTexObjData( const <a href="../Structures/GXTexObj.html">GXTexObj</a>* obj );</CODE></pre></dd> 21</dl><h2>Arguments</h2> 22<TABLE border="1" cellpadding="3" cellspacing="0.1"> 23 <tr> 24<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE><em><strong><code>obj</code></strong></em></CODE></strong></em></TD> 25<TD width="520">Pointer to a texture object</TD> 26 </tr> 27</TABLE> 28<h2>Return Values</h2> 29 30<p><em>Physical</em> pointer to texture data.</p> 31<H2>Description</H2> 32<P>This function returns a pointer to the texture data described by texture object <em><strong><code>obj</code></strong></em>. <BR><BR><B>Note:</B> The returned pointer is a physical address.<BR><BR>You can use the macros <a href="../../os/Address/OSPhysicalToCached.html"><code>OSPhysicalToCached</code></a> or <a href="../../os/Address/OSPhysicalToUncached.html"><code>OSPhysicalToUncached</code></a> 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 <a href="GXInitTexObj.html"><code>GXInitTexObj</code></a> (or a similar function), the address does need not to be converted.</P> 33<P>Use <a href="GXInitTexObj.html"><code>GXInitTexObj</code></a>, <code><a href="GXInitTexObjCI.html">GXInitTexObjCI</a></code>, or <a href="GXInitTexObjData.html"><code>GXInitTexObjData</code></a> to initialize the texture pointer.</P> 34 35<h2>See Also</h2> 36<P><a href="GXInitTexObj.html">GXInitTexObj</a><br> <a href="GXInitTexObjCI.html">GXInitTexObjCI</a><br> <a href="GXInitTexObjData.html">GXInitTexObjData</a></P> 37<H2>Revision History</H2> 38<P>03/01/2006 Initial version. 39</P></body> 40</html>