Video Engine

From Hero of Allacrost

Jump to: navigation, search
m (Images)
(Lighting and Fog)
Line 1,130: Line 1,130:
To create fog, you specify a color, an opacity, and then it covers the entire screen. Here is an example:<br>
To create fog, you specify a color, an opacity, and then it covers the entire screen. Here is an example:<br>
<pre>
<pre>
-
video->SetFog(Color::gray, 0.5f);
+
video->EnableFog(Color::gray, 0.5f);
 +
.....
 +
video->DisableFog();
</pre><br>
</pre><br>
 +
Every EnableFog call MUST HAVE AN ASSOCIATED DisableFog when your drawing routine ends, so the fog does not carry over to other drawing modes.
This covers the screen in a layer of gray fog which is 50% opaque. Pretty self explanatory :)<br>
This covers the screen in a layer of gray fog which is 50% opaque. Pretty self explanatory :)<br>

Revision as of 03:16, 7 August 2006

Personal tools