Implements color properties.
Implements a base class for all objects.
Implements general math utility functions.
This class implements a base class for modeling light sources.
Definition CGenericLight.h:80
void setUseTwoSideLightModel(bool a_useTwoSideLightModel)
This method enables or disables the two sided lighting mode.
Definition CGenericLight.cpp:106
cColorf m_ambient
Ambient light component.
Definition CGenericLight.h:131
cColorf m_specular
Specular light component.
Definition CGenericLight.h:137
void setDisplayEnabled(bool a_enabled)
This method enables or disables the graphic representation of light source. (To be used for debugging...
Definition CGenericLight.h:112
bool getDisplayEnabled() const
This method returns true of graphic display representation of the light source is enabled,...
Definition CGenericLight.h:115
void setGLLightNumber(const GLint a_glLightNumber)
This method sets the OpenGL Light ID number. Assigning these numbers is normally handled by the world...
Definition CGenericLight.h:118
cWorld * m_worldParent
Parent world in which light source is located.
Definition CGenericLight.h:160
GLint m_useTwoSideLightModel
If true then a two sided light source model is used.
Definition CGenericLight.h:166
GLint m_glLightNumber
OpenGL reference number for the current light source. This number ranges from 0 to 7.
Definition CGenericLight.h:163
bool m_displayEnabled
If true then a graphical representation of the light source is rendered.
Definition CGenericLight.h:169
virtual std::string getClassName()
This method returns the name of the object class.
Definition CGenericLight.h:103
virtual void renderLightSource(cRenderOptions &a_options)
This method renders the lighting properties of this light source using OpenGL.
Definition CGenericLight.h:147
bool getUseTwoSideLightModel() const
This method returns true if the two sided lighting mode is enabled, false otherwise.
Definition CGenericLight.cpp:126
GLint getGLLightNumber() const
This method returns the OpenGL Light ID number for this light source.
Definition CGenericLight.h:121
cColorf m_diffuse
Diffuse light component.
Definition CGenericLight.h:134
virtual ~cGenericLight()
Destructor of cGenericLight.
Definition CGenericLight.cpp:94
virtual void render(cRenderOptions &a_options)
This method renders a graphical representation (display model) of the light source....
Definition CGenericLight.h:150
This class implements a base class for all 2D or 3D objects in CHAI3D.
Definition CGenericObject.h:113
This class implements a virtual world.
Definition CWorld.h:93
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