version 3.3

VRS::ShadowMapBuilderGL Class Reference

given a scene graph and a camera, builds a shadow map texture More...

#include <vrs/opengl/shadowmapbuildergl.h>

Inheritance diagram for VRS::ShadowMapBuilderGL:

VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 ShadowMapBuilderGL (unsigned int width=512, unsigned int height=512, SceneNode *scene=NULL, Camera *camera=NULL, GLCanvas *sharedCanvas=NULL)
virtual void setScene (SceneNode *scene)
 sets the scene graph which is used to create the shadow map
virtual SceneNodegetScene () const
 gets the scene graph
virtual void setCamera (Camera *camera)
 sets the camera which is used to create the shadow map
virtual CameragetCamera () const
 gets the camera
virtual void rebuild ()
virtual Texture2DGLgetShadowMap () const
 returns the generated shadow map texture
virtual TexGenGLgetTexGen () const
 returns the corresponding texgen that must be used along with the shadow map texture
 VRS_TYPEINFO (ShadowMapBuilderGL, SharedObj)


Detailed Description

given a scene graph and a camera, builds a shadow map texture

Constructor & Destructor Documentation

VRS::ShadowMapBuilderGL::ShadowMapBuilderGL ( unsigned int  width = 512,
unsigned int  height = 512,
SceneNode scene = NULL,
Camera camera = NULL,
GLCanvas sharedCanvas = NULL 
)

'width' and 'height' specify the size of the shadow map texture. The canvas specifies the shared context, in which you want to use the resulting texture.


Member Function Documentation

virtual void VRS::ShadowMapBuilderGL::setScene ( SceneNode scene  )  [virtual]

sets the scene graph which is used to create the shadow map

virtual SceneNode* VRS::ShadowMapBuilderGL::getScene (  )  const [virtual]

gets the scene graph

virtual void VRS::ShadowMapBuilderGL::setCamera ( Camera camera  )  [virtual]

sets the camera which is used to create the shadow map

virtual Camera* VRS::ShadowMapBuilderGL::getCamera (  )  const [virtual]

gets the camera

virtual void VRS::ShadowMapBuilderGL::rebuild (  )  [virtual]

builds the shadow map. You must invoke this method before getting reasonable results from getShadowMap

virtual Texture2DGL* VRS::ShadowMapBuilderGL::getShadowMap (  )  const [virtual]

returns the generated shadow map texture

virtual TexGenGL* VRS::ShadowMapBuilderGL::getTexGen (  )  const [virtual]

returns the corresponding texgen that must be used along with the shadow map texture

VRS::ShadowMapBuilderGL::VRS_TYPEINFO ( ShadowMapBuilderGL  ,
SharedObj   
)


The documentation for this class was generated from the following file:

Generated on Tue May 22 06:00:24 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact