45 #ifndef CGenericLightH 46 #define CGenericLightH This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition: CRenderOptions.h:82
Implements general math utility functions.
virtual void renderLightSource(cRenderOptions &a_options)
This method renders the lighting properties of this light source using OpenGL.
Definition: CGenericLight.h:144
cColorf m_ambient
Ambient light component.
Definition: CGenericLight.h:128
cWorld * m_worldParent
Parent world in which light source is located.
Definition: CGenericLight.h:157
cColorf m_diffuse
Diffuse light component.
Definition: CGenericLight.h:131
GLint getGLLightNumber() const
This method returns the OpenGL Light ID number for this light source.
Definition: CGenericLight.h:118
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:115
This class implements a base class for modeling light sources.
Definition: CGenericLight.h:79
This class implements a virtual world.
Definition: CWorld.h:92
This class implements a base class for all 2D or 3D objects in CHAI3D.
Definition: CGenericObject.h:112
Implements a base class for all objects.
cColorf m_specular
Specular light component.
Definition: CGenericLight.h:134
void setUseTwoSideLightModel(bool a_useTwoSideLightModel)
This method enables or disables the two sided lighting mode.
Definition: CGenericLight.cpp:106
GLint m_glLightNumber
OpenGL reference number for the current light source. This number ranges from 0 to 7...
Definition: CGenericLight.h:160
This class defines a color using a GLfloat representation for each component.
Definition: CColor.h:138
Implements color properties.
bool getDisplayEnabled() const
This method returns true of graphic display representation of the light source is enabled...
Definition: CGenericLight.h:112
virtual void render(cRenderOptions &a_options)
This method renders a graphical representation (display model) of the light source. (used for debugging purposes typically).
Definition: CGenericLight.h:147
virtual ~cGenericLight()
Destructor of cGenericLight.
Definition: CGenericLight.cpp:94
bool getUseTwoSideLightModel() const
This method returns true if the two sided lighting mode is enabled, false otherwise.
Definition: CGenericLight.cpp:126
cGenericLight(cWorld *a_world)
Constructor of cGenericLight.
Definition: CGenericLight.cpp:59
void setDisplayEnabled(bool a_enabled)
This method enables or disables the graphic representation of light source. (To be used for debugging...
Definition: CGenericLight.h:109
GLint m_useTwoSideLightModel
If true then a two sided light source model is used.
Definition: CGenericLight.h:163
Definition: CAudioBuffer.cpp:56
bool m_displayEnabled
If true then a graphical representation of the light source is rendered.
Definition: CGenericLight.h:166