| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/opengl/shadowmapbuildergl.h>

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 SceneNode * | getScene () const |
| gets the scene graph | |
| virtual void | setCamera (Camera *camera) |
| sets the camera which is used to create the shadow map | |
| virtual Camera * | getCamera () const |
| gets the camera | |
| virtual void | rebuild () |
| virtual Texture2DGL * | getShadowMap () const |
| returns the generated shadow map texture | |
| virtual TexGenGL * | getTexGen () const |
| returns the corresponding texgen that must be used along with the shadow map texture | |
| VRS_TYPEINFO (ShadowMapBuilderGL, SharedObj) | |
| 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.
| 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 | ||||
| ) |