1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="Microsoft FrontPage 5.0">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<TITLE>GXInitFogAdjTable</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">GXInitFogAdjTable</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/gx.h&gt;
16
17void GXInitFogAdjTable(
18                <A href="../Structures/GXFogAdjTable.html">GXFogAdjTable*</A>  table,
19                u16             width,
20                f32             projmtx[4][4] );
21</pre></dd></dl>
22
23<H2>Arguments</H2>
24<TABLE class="arguments" border="1" >
25  <TBODY>
26    <TR>
27<TH>table</TH>
28<TD>The range adjustment parameter table that uses the <A href="GXSetFogRangeAdj.html"><CODE>GXSetFogRangeAdj</A></CODE> function to send to the graphics pipe.</TD>
29    </TR>
30    <TR>
31<TH>width</TH>
32<TD>Viewport width. Match this value to that of the current viewport's settings. Failure to do so may result in an incorrect range adjustment.</TD>
33    </TR>
34    <TR>
35<TH>projmtx</TH>
36<TD>The project matrix used in rendering for the viewport.</TD>
37    </TR>
38  </TBODY>
39</TABLE>
40
41<H2>Return Values</H2>
42<P>None.</P>
43
44<H2>Description</H2>
45<P>This function generates the standard range adjustment table and puts the results into <SPAN class="argument">table</SPAN> (the user must allocate <SPAN class="argument">table</SPAN>). This table can be used by the <A href="GXSetFogRangeAdj.html"><CODE>GXSetFogRangeAdj</CODE></A> function to adjust the visual-space Z, which is used for fog, based upon the X position of the pixels being rendered. No compensation is made for the Y direction. This effectively increases the fog density at the edges of the screen, making for a more realistic fog effect.&nbsp;The width of the viewport is specified using <SPAN class="argument">width</SPAN>.&nbsp;The <SPAN class="argument">projmtx</SPAN> argument is the projection matrix that is used to render into the viewport.&nbsp;This parameter must be specified so that the function can compute the X extent of the viewing frustum in visual space.</P>
46
47<H2>See Also</H2>
48<P class="reference">
49<A href="GXSetFog.html">GXSetFog</A>,
50<A href="GXSetFogRangeAdj.html">GXSetFogRangeAdj</A>,
51<A href="../Structures/GXFogAdjTable.html">GXFogAdjTable</A>
52</P>
53
54<H2>Revision History</H2>
55<P>
562006/03/01 Initial version.<br>
57</P>
58
59<hr><p>CONFIDENTIAL</p></body>
60</HTML>