67 #define C_MAXIMUM_OPENGL_LIGHT_COUNT 8 117 const GLfloat a_green,
118 const GLfloat a_blue);
155 const unsigned int a_IDN);
178 const bool a_mirrorY =
false);
This class implements a 3D vector.
Definition: CVector3d.h:88
double m_worldModelView[16]
It's useful to store the world's modelview matrix, for rendering stuff in "global" coordinates...
Definition: CWorld.h:200
Implements arrays of 3D triangles.
cColorf getBackgroundColor() const
This method returns the background color of this world.
Definition: CWorld.h:124
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition: CRenderOptions.h:82
bool getUseShadowCastring()
This method returns true if shadow casting is enabled, false otherwise.
Definition: CWorld.h:168
Implementation of a camera.
cColorf m_backgroundColor
Background color of the world.
Definition: CWorld.h:188
double m_shadowIntensity
Shadow intensity. Values ranges between 0.0 and 1.0 (0.0 = no shadow - full light. 1.0 = full shadow - no light).
Definition: CWorld.h:239
virtual cGenericLight * getLightSource(int index)
This method returns a pointer to a particular light source (between 0 and MAXIMUM_OPENGL_LIGHT_COUNT-...
Definition: CWorld.cpp:227
bool m_useShadowCasting
If true then shadow maps are used.
Definition: CWorld.h:242
bool addLightSource(cGenericLight *a_light)
This method adds a light source to this world.
Definition: CWorld.cpp:132
void enableLightSourceRendering(bool enable)
This method enables or disables the rendering of this world's light sources.
Definition: CWorld.h:134
This class implements a base class for modeling light sources.
Definition: CGenericLight.h:79
This class implements a virtual world.
Definition: CWorld.h:92
Implements graphic fog capabilities.
This class implements a base class for all 2D or 3D objects in CHAI3D.
Definition: CGenericObject.h:112
This class implements a collision detection recorder that stores all collision events that are report...
Definition: CCollisionBasics.h:185
virtual ~cWorld()
Destructor of cWorld.
Definition: CWorld.cpp:86
This structure stores the collision settings that are passed to a collision detector when querying fo...
Definition: CCollisionBasics.h:242
virtual bool updateShadowMaps(const bool a_mirrorX=false, const bool a_mirrorY=false)
This method updates all shadow maps.
Definition: CWorld.cpp:250
Implements a base class for all objects.
This class implements fog inside the world.
Definition: CFog.h:81
virtual void render(cRenderOptions &a_options)
This method renders all light sources of this world.
Definition: CWorld.cpp:343
void setUseShadowCasting(bool a_enabled)
This method enables or disables shadow casting.
Definition: CWorld.h:165
This class defines a color using a GLfloat representation for each component.
Definition: CColor.h:138
Implements color properties.
void setBackgroundColor(const GLfloat a_red, const GLfloat a_green, const GLfloat a_blue)
This method sets the background color of this world.
Definition: CWorld.cpp:101
virtual void computeLocalInteraction(const cVector3d &a_toolPos, const cVector3d &a_toolVel, const unsigned int a_IDN)
This method updates the geometric relationship between the tool and this world.
Definition: CWorld.cpp:441
cFog * m_fog
Fog property.
Definition: CWorld.h:191
std::list< cShadowMap * > m_shadowMaps
List of active shadow maps.
Definition: CWorld.h:197
double cClamp01(const double &a_value)
This function clamps a value to a value ranged between 0.0 and 1.0.
Definition: CMaths.h:406
void setShadowIntensity(double a_intensity)
This method sets the shadow Intensity. (0.0 = no shadow - full light. 1.0 = full shadow - no light) ...
Definition: CWorld.h:171
Definition: CAudioBuffer.cpp:56
bool m_renderLightSources
If true then light sources should be used.
Definition: CWorld.h:236
bool isShadowCastingSupported()
This method returns true if shadow casting is supported on this hardware, false otherwise.
Definition: CWorld.cpp:313
std::vector< cGenericLight * > m_lights
List of light sources.
Definition: CWorld.h:194
double getShadowIntensity()
Definition: CWorld.h:174
virtual bool computeCollisionDetection(const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, cCollisionRecorder &a_recorder, cCollisionSettings &a_settings)
This method computes any collision between a segment and all objects in this world.
Definition: CWorld.cpp:409
bool removeLightSource(cGenericLight *a_light)
This method removed a light source from this world.
Definition: CWorld.cpp:193
cWorld()
Constructor of cWorld.
Definition: CWorld.cpp:59