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<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXSetFogRangeAdj(
21		<a href="../Enumerated_Types/GXBool.html">GXBool</a>		enable,
22		u16		center,
23		<a href="../Structures/GXFogAdjTable.html">GXFogAdjTable*</a>	table );
24</pre></dd></dl>
25
26<h2>Arguments</h2>
27<TABLE class="arguments" border="1" >
28  <tr>
29<TH>enable</TH>
30<TD>Enables range adjustment when set to <code>GX_ENABLE</code>.</TD>
31  </tr>
32  <tr>
33<TH>center</TH>
34<TD>The center to apply the range adjustment function. Normally matches the center of the viewport.</TD>
35  </tr>
36  <tr>
37<TH>table</TH>
38<TD>The table of range adjustment coefficients. Normally, the <A href="GXInitFogAdjTable.html"><CODE>GXInitFogAdjTable</CODE></A> function is used to initialize this.</TD>
39  </tr>
40</TABLE>
41
42<h2>Return Values</h2>
43<p>None.</p>
44
45<H2>Description</H2>
46<P>This function allows enabling or disabling horizontal fog-range adjustment. This adjustment is a factor that is multiplied by the visual-space Z value used for fog computation. It is based upon the X coordinate value of the pixels being rendered.&nbsp;The Y direction is not compensated for. This effectively increases the fog density at the edges of the screen, making for a more realistic fog effect.&nbsp;The correction is computed per quad (2x2 pixels), not per pixel.&nbsp;The center of the viewport is specified using <SPAN class="argument">center</SPAN>.&nbsp;The range adjustment table is specified using <SPAN class="argument">table</SPAN>. The range adjust function is mirrored horizontally about the <SPAN class="argument">center</SPAN>.</P>
47<P>The <A href="../Management/GXInit.html"><CODE>GXInit</CODE></A> function disables range adjustment by default.</P>
48
49<h2>See Also</h2>
50<P class="reference">
51<a href="GXSetFog.html">GXSetFog</a>,
52<a href="GXInitFogAdjTable.html">GXInitFogAdjTable</a>,
53<a href="../Structures/GXFogAdjTable.html">GXFogAdjTable</a>
54</p>
55
56<H2>Revision History</H2>
57<P>
582006/03/01 Initial version.<br>
59</P>
60
61<hr><p>CONFIDENTIAL</p></body>
62</HTML>