|
| | cShadowMap () |
| | Constructor of cShadowMap.
|
| |
| virtual | ~cShadowMap () |
| | Destructor of cShadowMap.
|
| |
| virtual std::string | getClassName () |
| | This method returns the name of the object class.
|
| |
| void | setEnabled (bool a_enabled) |
| | This method enables or disables this shadow map.
|
| |
| bool | getEnabled () const |
| | This method returns true if the this shadow map is enabled, false otherwise.
|
| |
| void | setQualityVeryLow () |
| | This method sets the quality resolution of the shadow map to 256 x 256 pixels.
|
| |
| void | setQualityLow () |
| | This method sets the quality resolution of the shadow map to 512 x 512 pixels.
|
| |
| void | setQualityMedium () |
| | This method sets the quality resolution of the shadow map to 1024 x 1024 pixels.
|
| |
| void | setQualityHigh () |
| | This method sets the quality resolution of the shadow map to 2048 x 2048 pixels.
|
| |
| void | setQualityVeryHigh () |
| | This method sets the quality resolution of the shadow map to 4096 x 4096 pixels.
|
| |
| virtual void | render (cRenderOptions &a_options) |
| | This method contains the OpenGL rendering code for shadow maps. (Do not call this code directly.)
|
| |
| 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.)
|
| |
| | cFrameBuffer () |
| | Constructor of cFrameBuffer.
|
| |
| virtual | ~cFrameBuffer () |
| | Destructor of cFrameBuffer.
|
| |
| void | setup (cCamera *a_camera=NULL, const unsigned int a_width=0, const unsigned int a_height=0, const bool a_enableImageBuffer=true, const bool a_enableDepthBuffer=true) |
| | This method initializes the framebuffer.
|
| |
| void | renderView (const cEyeMode a_eyeMode=C_STEREO_LEFT_EYE) |
| | This method renders the framebuffer view.
|
| |
| void | copyImageBuffer (cImagePtr a_image) |
| | This method copies the framebuffer content to an image.
|
| |
| void | copyDepthBuffer (cImagePtr a_image) |
| | This method copies the depth buffer content to an image.
|
| |
| void | setCamera (cCamera *a_camera) |
| | This method attaches a camera to the framebuffer.
|
| |
| cCamera * | getCamera () |
| | This method returns a pointer to the camera attached to the framebuffer.
|
| |
| unsigned int | getWidth () const |
| | This method returns the width in pixels of the framebuffer.
|
| |
| unsigned int | getHeight () const |
| | This method returns the height in pixels of the framebuffer.
|
| |
| 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.
|
| |
| bool | renderInitialize () |
| | This method initializes rendering to the framebuffer.
|
| |
| bool | renderFinalize () |
| | This method finalizes the rendering to the framebuffer.
|
| |
|
| bool | m_enabled |
| | If true, then shadow map is enabled, false otherwise.
|
| |
| bool | m_useImageBuffer |
| | If true then image buffer is enabled, false otherwise.
|
| |
| bool | m_useDepthBuffer |
| | If true then image buffer is enabled, false otherwise.
|
| |
| unsigned int | m_width |
| | Width in pixels of the frame buffer.
|
| |
| unsigned int | m_height |
| | Height in pixels of the frame buffer.
|
| |
| unsigned int | m_prevWidth |
| | Last width value that was used when allocating texture size.
|
| |
| unsigned int | m_prevHeight |
| | Last height value that was used when allocating texture size.
|
| |
| cCamera * | m_camera |
| | Camera associated with this framebuffer.
|
| |
| GLuint | m_fbo |
| | OpenGL frame buffer object.
|
| |
This class implements a shadow map texture for spot lights (cSpotLight).