129 const double a_density);
Implements color properties.
Implements a structure to store rendering options.
This class implements fog inside the world.
Definition CFog.h:82
cColorf m_color
Fog color.
Definition CFog.h:139
GLint m_fogMode
Fog mode. (GL_LINEAR, GL_EXP, GL_EXP2).
Definition CFog.h:152
void setFogModeEXP2()
This method sets the fog mode to GL_EXP2.
Definition CFog.h:121
GLint getFogMode()
This method returns the current fog mode.
Definition CFog.h:124
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
void setFogModeLINEAR()
This method sets the fog mode to GL_LINEAR.
Definition CFog.h:115
float m_density
Fog density.
Definition CFog.h:161
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
virtual void render(cRenderOptions &a_options)
This method renders the fog using OpenGL.
Definition CFog.cpp:97
void setFogModeEXP()
This method sets the fog mode to GL_EXP.
Definition CFog.h:118
void setProperties(const double a_start, const double a_end, const double a_density)
This method sets the fog properties.
Definition CFog.cpp:82
cFog()
Constructor of cFog.
Definition CFog.cpp:57
float m_end
Fog end distance.
Definition CFog.h:158
virtual ~cFog()
Destructor of cFog.
Definition CFog.h:93
void setEnabled(const bool a_enabled)
This method enables of disables fog.
Definition CFog.h:106
float m_start
Fog start distance.
Definition CFog.h:155
Definition CAudioBuffer.cpp:57
This class defines a color using a GLfloat representation for each component.
Definition CColor.h:139
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition CRenderOptions.h:83