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>GXGetTexObjAll</title> 10</head> 11 12<body> 13 14<h1 align="left">GXGetTexObjAll</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20void GXGetTexObjAll( 21 const <A href="../Structures/GXTexObj.html">GXTexObj</A>* obj, 22 void** image_ptr, 23 u16* width, 24 u16* height, 25 <A href="../Enumerated_Types/GXTexFmt.html">GXTexFmt</A>* format, 26 <A href="../Enumerated_Types/GXTexWrapMode.html">GXTexWrapMode</A>* wrap_s, 27 <A href="../Enumerated_Types/GXTexWrapMode.html">GXTexWrapMode</A>* wrap_t, 28 <A href="../Enumerated_Types/GXBool.html">GXBool</A>* mipmap ); 29</pre></dd></dl> 30 31<h2>Arguments</h2> 32<TABLE class="arguments" border="1" > 33 <tr> 34<TH><em><strong><code>obj</code></strong></em></TH> 35<TD>Pointer to a texture object.</TD> 36 </tr> 37 <tr> 38<TH><STRONG><EM><CODE>image_ptr</CODE></EM></STRONG></TH> 39<TD>Returns a <em>physical</em> pointer to the image data for a texture. See the <A href="GXGetTexObjData.html"><CODE>GXGetTexObjData</CODE></A> function for details.</TD> 40 </tr> 41 <tr> 42<TH><CODE>width</CODE></TH> 43<TD>Returns the width of the texture or LOD 0 for mipmaps.</TD> 44 </tr> 45 <tr> 46<TH><CODE>height</CODE></TH> 47<TD>Returns the height of the texture or LOD 0 for mipmaps.</TD> 48 </tr> 49 <tr> 50<TH><CODE>format</CODE></TH> 51<TD>Returns the texel <a href="../Enumerated_Types/GXTexFmt.html">format</a>. </TD> 52 </tr> 53 <tr> 54<TH><STRONG><EM><CODE>wrap_s</CODE></EM></STRONG></TH> 55<TD>Returns the mode which describes how texture coordinates will be wrapped in the S direction.</TD> 56 </tr> 57 <tr> 58<TH><STRONG><EM><CODE>wrap_t</CODE></EM></STRONG></TH> 59<TD>Returns the mode which describes how texture coordinates will be wrapped in the T direction.</TD> 60 </tr> 61 <tr> 62<TH><STRONG><EM><CODE>mipmap</CODE></EM></STRONG></TH> 63<TD>Returns the flag enabling mipmaps.</TD> 64 </tr> 65</TABLE> 66 67<h2>Return Values</h2> 68<p>None.</p> 69 70<H2>Description</H2> 71<P>This function returns the parameters described by a texture object. Texture objects are used to describe all the parameters associated with a texture, including size, format, wrap modes, filter modes, etc. Texture objects are initialized using either the <A href="GXInitTexObj.html"><CODE>GXInitTexObj</CODE></A> function, or for color index format textures, the <A href="GXInitTexObjCI.html"><CODE>GXInitTexObjCI</CODE></A> function.</P> 72 73<h2>See Also</h2> 74<P class="reference"> 75<a href="GXInitTexObjCI.html">GXInitTexObjCI</a>, 76<a href="GXInitTexObjLOD.html">GXInitTexObjLOD</a>, 77<a href="GXLoadTexObj.html">GXLoadTexObj</a> 78</p> 79 80<H2>Revision History</H2> 81<P> 822006/03/01 Initial version.<br> 83</P> 84 85<hr><p>CONFIDENTIAL</p></body> 86</HTML>