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 17<h2>C Specification</h2> 18 19<dl> 20 <dd><pre><CODE>#include <revolution/gx.h></CODE></pre> 21 </dd> 22 <dd><pre><CODE>void GXGetTexObjAll( 23 const <A href="../Structures/GXTexObj.html">GXTexObj</A>* obj, 24 void** image_ptr, 25 u16* width, 26 u16* height, 27 <A href="../Enumerated_Types/GXTexFmt.html">GXTexFmt</A>* format, 28 <A href="../Enumerated_Types/GXTexWrapMode.html">GXTexWrapMode</A>* wrap_s, 29 <A href="../Enumerated_Types/GXTexWrapMode.html">GXTexWrapMode</A>* wrap_t, 30 <A href="../Enumerated_Types/GXBool.html">GXBool</A>* mipmap );</CODE></pre> 31 </dd> 32</dl> 33 34<h2>Arguments</h2> 35<TABLE border="1" cellpadding="3" cellspacing="0.1"> 36 <tr> 37<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>obj</CODE></strong></em></TD> 38<TD width="520">Pointer to a texture object.</TD> 39 </tr> 40 <tr> 41<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>image_ptr</CODE></strong></em></TD> 42<TD width="520">Returns a <em>physical</em> pointer to the image data for a texture. See <a href="GXGetTexObjData.html"><code>GXGetTexObjData</code></a> for details.</TD> 43 </tr> 44 <tr> 45<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>width</CODE></strong></em></TD> 46<TD width="520">Returns the width of the texture or LOD 0 for mipmaps.</TD> 47 </tr> 48 <tr> 49<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>height</CODE></strong></em></TD> 50<TD width="520">Returns the height of the texture or LOD 0 for mipmaps.</TD> 51 </tr> 52 <tr> 53<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>format</CODE></strong></em></TD> 54<TD width="520">Returns the texel <a href="../Enumerated_Types/GXTexFmt.html">format</a>. </TD> 55 </tr> 56 <tr> 57<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>wrap_s</CODE></strong></em></TD> 58<TD width="520">Returns the mode which describes how texture coordinates will be wrapped in the <I>s</I> direction.</TD> 59 </tr> 60 <tr> 61<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>wrap_t</CODE></strong></em></TD> 62<TD width="520">Returns the mode which describes how texture coordinates will be wrapped in the <I>t</I> direction.</TD> 63 </tr> 64 <tr> 65<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>mipmap</CODE></strong></em></TD> 66<TD width="520">returns the <code><em><strong>mipmap</strong></em> </code>enable flag.</TD> 67 </tr> 68</TABLE> 69<h2>Return Values</h2> 70 71<p>None.</p> 72<H2>Description</H2> 73<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 <a href="GXInitTexObj.html"><code>GXInitTexObj</code></a> or, for color index format textures, <a href="GXInitTexObjCI.html"><code>GXInitTexObjCI</code></a>.</P> 74 75<h2>See Also</h2> 76 77<p><a href="GXInitTexObj.html">GXInitTexObj</a><br> <a href="GXInitTexObjCI.html">GXInitTexObjCI</a><br> <a href="GXInitTexObjLOD.html">GXInitTexObjLOD</a><br> <a href="GXLoadTexObj.html">GXLoadTexObj</a></p> 78<H2>Revision History</H2> 79<P>2006/03/01 Initial version.</P> 80<hr> 81<P>CONFIDENTIAL</p> 82</BODY> 83</HTML>