149 const double a_lightFieldViewAngle,
150 const double a_distanceNear,
151 const double a_distanceFar,
152 const double a_mirrorH,
153 const double a_mirrorV);
Implementation of a framebuffer.
This class implements an OpenGL framebuffer.
Definition CFrameBuffer.h:88
void setSize(const unsigned int a_width, const unsigned int a_height)
This method sets the resolution of the framebuffer by defining its width and height in pixels.
Definition CFrameBuffer.cpp:147
This class implements a shadow map for spot lights (cSpotLight).
Definition CShadowMap.h:77
void setQualityHigh()
This method sets the quality resolution of the shadow map to 2048 x 2048 pixels.
Definition CShadowMap.h:116
cTransform m_lightViewMatrix
View matrix of the light source creating this shadow.
Definition CShadowMap.h:132
void setQualityMedium()
This method sets the quality resolution of the shadow map to 1024 x 1024 pixels.
Definition CShadowMap.h:113
virtual void render(cRenderOptions &a_options)
This method contains the OpenGL rendering code for shadow maps. (Do not call this code directly....
Definition CShadowMap.cpp:88
virtual ~cShadowMap()
Destructor of cShadowMap.
Definition CShadowMap.h:88
bool updateMap(cWorld *a_world, const cVector3d &a_lightPos, const cVector3d &a_lightLookat, const cVector3d &a_lightUp, const double a_lightFieldViewAngle, const double a_distanceNear, const double a_distanceFar, const double a_mirrorH, const double a_mirrorV)
This method updates the shadow map. (Do not call this code directly.)
Definition CShadowMap.cpp:226
bool getEnabled() const
This method returns true if the this shadow map is enabled, false otherwise.
Definition CShadowMap.h:104
void setQualityLow()
This method sets the quality resolution of the shadow map to 512 x 512 pixels.
Definition CShadowMap.h:110
cTransform m_lightProjectionMatrix
Projection matrix of the light source creating this shadow.
Definition CShadowMap.h:129
bool m_enabled
If true, then shadow map is enabled, false otherwise.
Definition CShadowMap.h:163
cShadowMap()
Constructor of cShadowMap.
Definition CShadowMap.cpp:65
void setEnabled(bool a_enabled)
This method enables or disables this shadow map.
Definition CShadowMap.h:101
virtual std::string getClassName()
This method returns the name of the object class.
Definition CShadowMap.h:98
void setQualityVeryHigh()
This method sets the quality resolution of the shadow map to 4096 x 4096 pixels.
Definition CShadowMap.h:119
void setQualityVeryLow()
This method sets the quality resolution of the shadow map to 256 x 256 pixels.
Definition CShadowMap.h:107
This class implements a virtual world.
Definition CWorld.h:93
Definition CAudioBuffer.cpp:57
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition CRenderOptions.h:83
This class implements a 3D vector.
Definition CVector3d.h:89