|
| | cFog () |
| | Constructor of cFog.
|
| |
| virtual | ~cFog () |
| | Destructor of cFog.
|
| |
| virtual void | render (cRenderOptions &a_options) |
| | This method renders the fog using OpenGL.
|
| |
| void | setEnabled (const bool a_enabled) |
| | This method enables of disables fog.
|
| |
| bool | getEnabled () const |
| | This method returns true if fog is enabled, false otherwise.
|
| |
| void | setFogMode (const GLint a_fogMode) |
| | This method sets the fog mode by passing the OpenGL fog mode constant as parameter (GL_LINEAR, GL_EXP, GL_EXP2).
|
| |
| void | setFogModeLINEAR () |
| | This method sets the fog mode to GL_LINEAR.
|
| |
| void | setFogModeEXP () |
| | This method sets the fog mode to GL_EXP.
|
| |
| void | setFogModeEXP2 () |
| | This method sets the fog mode to GL_EXP2.
|
| |
| GLint | getFogMode () |
| | This method returns the current fog mode.
|
| |
| void | setProperties (const double a_start, const double a_end, const double a_density) |
| | This method sets the fog properties.
|
| |
This class implements support for OpenGL's fog capability. When fog is enabled, objects that are farther from the viewpoint begin to fade into the fog color. You can control the density of the fog, which determines the rate at which objects fade as the distance increases, as well as the fog's color.