d3d_set_fog_enabled(enable)

From ENIGMA
Jump to navigation Jump to search

Description

Sets whether fog is currently used so that it can be toggled without having to reset the other parameters each time.

Parameters

Parameter Data Type Description
enable boolean whether or not fog is enabled

Return Values

void: This function does not return anything.

Example Call

// Demonstrates setting the fog values and then toggling the fog without losing the color and extra paremters.
d3d_set_fog(true, c_teal, 1, 2000);
d3d_set_fog_enabled(false);
d3d_set_fog_enabled(true);