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>GXSetFogRangeAdj</title>
10</head>
11
12<body>
13
14<h1 align="left">GXSetFogRangeAdj</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20<dd><PRE><CODE>#include &lt;revolution/gx.h&gt;</CODE></PRE>
21  </dd>
22<dd><pre><CODE>void GXSetFogRangeAdj(
23		<a href="../Enumerated_Types/GXBool.html">GXBool</a>         enable,
24		u16		center,
25		<a href="../Structures/GXFogAdjTable.html">GXFogAdjTable</a>* table );</CODE></pre>
26  </dd>
27</dl>
28
29<h2>Arguments</h2>
30<TABLE border="1" cellpadding="3" cellspacing="0.1">
31  <tr>
32<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>enable</font></strong></em></TD>
33<TD width="520">Enables range adjustment when set to <code>GX_ENABLE</code>.</TD>
34    </tr>
35  <tr>
36<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>center</font></strong></em></TD>
37<TD width="520">The applicable center for the range adjustment function. Normally matches the center of the viewport.</TD>
38    </tr>
39  <tr>
40<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>table</font></strong></em></TD>
41<TD width="520">The table of range adjustment coefficients. Normally, the <CODE><A href="GXInitFogAdjTable.html">GXInitFogAdjTable</A></code> function is used to initialize this.</TD>
42    </tr>
43</TABLE>
44<h2>Return Values</h2>
45
46<p>None.</p>
47<H2>Description</H2>
48<P>This function allows enabling or disabling horizontal fog-range adjustment. This adjustment is a factor that is multiplied by the visual-space Z used for fog computation;  it is based upon the X position of the pixels being rendered.&nbsp;The Y direction is not compensated for. &nbsp;This effectively increases the fog density at the edges of the screen, making for a more realistic fog effect.&nbsp;The adjustment is computed per quad (2x2 pixels), not per-pixel.&nbsp;The center of the viewport is specified using <em><strong><code>center</code></strong></em>.&nbsp;The range adjustment table is specified using <code><em><strong>table</strong></em></code>. The range adjust function is mirrored horizontally about the <em><strong><code>center</code></strong></em>.</P>
49<P><a href="../Management/GXInit.html"><code>GXInit</code></a> disables range adjustment by default.</P>
50
51
52
53
54<h2>See Also</h2>
55
56<p><a href="GXSetFog.html"><CODE>GXSetFog</CODE></a><br> <a href="GXInitFogAdjTable.html"><CODE>GXInitFogAdjTable</CODE><br></a><a href="../Structures/GXFogAdjTable.html"><CODE>GXFogAdjTable</CODE></a></p>
57<H2>Revision History</H2>
58<P>03/01/2006 Initial version.</P>
59</BODY>
60</HTML>