129 const double a_density);
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition: CRenderOptions.h:82
bool getEnabled() const
This method returns true if fog is enabled, false otherwise.
Definition: CFog.h:109
bool m_enabled
If true, then fog is enabled, false otherwise.
Definition: CFog.h:149
float m_end
Fog end distance.
Definition: CFog.h:158
float m_density
Fog density.
Definition: CFog.h:161
GLint m_fogMode
Fog mode. (GL_LINEAR, GL_EXP, GL_EXP2).
Definition: CFog.h:152
void setFogModeEXP()
This method sets the fog mode to GL_EXP.
Definition: CFog.h:118
GLint getFogMode()
This method returns the current fog mode.
Definition: CFog.h:124
cFog()
Constructor of cFog.
Definition: CFog.cpp:57
float m_start
Fog start distance.
Definition: CFog.h:155
void setEnabled(const bool a_enabled)
This method enables of disables fog.
Definition: CFog.h:106
void setFogModeLINEAR()
This method sets the fog mode to GL_LINEAR.
Definition: CFog.h:115
Implements a structure to store rendering options.
void setFogModeEXP2()
This method sets the fog mode to GL_EXP2.
Definition: CFog.h:121
This class implements fog inside the world.
Definition: CFog.h:81
This class defines a color using a GLfloat representation for each component.
Definition: CColor.h:138
Implements color properties.
virtual ~cFog()
Destructor of cFog.
Definition: CFog.h:93
void setFogMode(const GLint a_fogMode)
This method sets the fog mode by passing the OpenGL fog mode constant as parameter (GL_LINEAR...
Definition: CFog.h:112
Definition: CAudioBuffer.cpp:56
cColorf m_color
Fog color.
Definition: CFog.h:139
virtual void render(cRenderOptions &a_options)
This method renders the fog using OpenGL.
Definition: CFog.cpp:97
void setProperties(const double a_start, const double a_end, const double a_density)
This method sets the fog properties.
Definition: CFog.cpp:82