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>GXGetTexRegionAll</title> 10</head> 11 12<body> 13 14<h1 align="left">GXGetTexRegionAll</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 GXGetTexRegionAll( 23const <A href="../Structures/GXTexRegion.html">GXTexRegion</A>* region, 24GXBool* is_32b_mipmap, 25u32* tmem_even, 26u32* size_even, 27u32* tmem_odd, 28u32* size_odd );</CODE></pre> 29 </dd> 30</dl> 31 32<h2>Arguments</h2> 33<TABLE border="1" cellpadding="3" cellspacing="0.1"> 34 <tr> 35<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>region</CODE></strong></em></TD> 36<TD width="520">Pointer to a <a href="../Structures/GXTexRegion.html"><code>GXTexRegion</code></a>.</TD> 37 </tr> 38 <tr> 39<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>is_cached</CODE></strong></em></TD> 40<TD width="520">Returns whether this is a cached region or a preloaded region.</TD> 41 </tr> 42 <tr> 43<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>is_32b_mipmap</CODE></strong></em></TD> 44<TD width="520">Returns whether or not the cached region is intended for a 32-bit (RGBA8) mipmap texture.</TD> 45 </tr> 46 <tr> 47<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>tmem_even</CODE></strong></em></TD> 48<TD width="520">Returns the texture memory address for the even LODs or for planar (non-32b) textures.</TD> 49 </tr> 50 <tr> 51<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>size_even</CODE></strong></em></TD> 52<TD width="520">Returns the texture memory region size (in bytes) for the even LODs.<br><BR><B>Note:</B> The value is not doubled for 32-bit mipmap textures.</TD> 53 </tr> 54 <tr> 55<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>tmem_odd</CODE></strong></em></TD> 56<TD width="520">Returns the texture memory address for the odd LODs (if any).</TD> 57 </tr> 58 <tr> 59<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>size_odd</CODE></strong></em></TD> 60<TD width="520">Returns the texture memory region size (in bytes) for the odd LODs.<br><BR><B>Note:</B> The value is not doubled for 32-bit mipmap textures.</TD> 61 </tr> 62</TABLE> 63<h2>Return Values</h2> 64 65<P>None.</P> 66<H2>Description</H2> 67<P>This function returns all the parameters that describe a texture memory region (<CODE><A href="../Structures/GXTexRegion.html">GXTexRegion</A></CODE> structure) object. This object describes how texture memory needs to be used. There are two types of texture memory region objects. The first is a cache texture (created by <CODE><A href="GXInitTexCacheRegion.html">GXInitTexCacheRegion</A></CODE>), while the other is a preload texture (created by<A href="GXInitTexPreLoadRegion.html"><CODE>GXInitTexPreLoadRegion</CODE></A>).</P> 68<h2>See Also</h2> 69 70<p><a href="GXInitTexCacheRegion.html">GXInitTexCacheRegion</a><br> <a href="GXInitTexPreLoadRegion.html">GXInitTexPreLoadRegion</a></p> 71<H2>Revision History</H2> 72<P>03/01/2006 Initial version</P></body> 73</html>