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>GXDecompressZ16</title> 10</head> 11 12<body> 13 14<h1 align="left">GXDecompressZ16</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20u32 GXDecompressZ16( u32 z16, GXZFmt16 zfmt ); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<TH>z16</TH> 27<TD>16-bit compressed z value. Type is u32 to match the argument of the <A href="GXPeekZ.html"><CODE>GXPeekZ</CODE></A> function.</TD> 28 </tr> 29 <tr> 30<TH>zfmt</TH> 31<TD>Z compression format. Accepted values are: 32 <TABLE class="arguments" border="1" > 33 <tr> 34<TD bgcolor="#C0C0C0">Name</TD> 35<TD bgcolor="#C0C0C0">Z format</TD> 36 </tr> 37 <tr> 38<TH>GX_ZC_LINEAR</TH> 39<TD>16-bit linear.</TD> 40 </tr> 41 <tr> 42<TH>GX_ZC_NEAR</TH> 43<TD>Compressed format for smaller far/near ratio.</TD> 44 </tr> 45 <tr> 46<TH>GX_ZC_MID</TH> 47<TD>Compressed format for medium far/near ratio.</TD> 48 </tr> 49 <tr> 50<TH>GX_ZC_FAR</TH> 51<TD>Compressed format for large far/near ratio.</TD> 52 </tr> 53 </TABLE> 54 </TD> 55 </tr> 56</TABLE> 57 58<h2>Return Values</h2> 59<P>24-bit decompressed Z value.</P> 60 61<H2>Description</H2> 62<P>This auxiliary function is used to directly read the Z value from the 16-bit Z buffer using the <A href="GXPeekZ.html"><CODE>GXPeekZ</CODE></A> function. The 16-bit value is expanded to a 24-bit value via the Z compression format specified by the argument <SPAN class="argument">zfmt</SPAN>.</P> 63 64<h2>See Also</h2> 65<P class="reference"> 66<a href="GXPeekZ.html">GXPeekZ</a>, 67<a href="GXCompressZ16.html">GXCompressZ16</a> 68</p> 69 70<H2>Revision History</H2> 71<P> 722006/03/01 Initial version.<br> 73</P> 74 75<hr><p>CONFIDENTIAL</p></body> 76</HTML>