OpenSceneGraph 2.8.3

osgShadow::ShadowTexture Class Reference

ShadowedTexture provides an implementation of shadow textures. More...

Inheritance diagram for osgShadow::ShadowTexture:

List of all members.

Public Member Functions

 ShadowTexture ()
 ShadowTexture (const ShadowTexture &es, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgShadow, ShadowTexture)
void setTextureUnit (unsigned int unit)
 Set the texture unit that the shadow texture will be applied on.
unsigned int getTextureUnit () const
 Get the texture unit that the shadow texture will be applied on.
virtual void init ()
 initialize the ShadowedScene and local cached data structures.
virtual void update (osg::NodeVisitor &nv)
 run the update traversal of the ShadowedScene and update any loca chached data structures.
virtual void cull (osgUtil::CullVisitor &cv)
 run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique.
virtual void cleanSceneGraph ()
 Clean scene graph from any shadow technique specific nodes, state and drawables.

Protected Member Functions

virtual ~ShadowTexture ()

Protected Attributes

osg::ref_ptr< osg::Camera_camera
osg::ref_ptr< osg::TexGen_texgen
osg::ref_ptr< osg::Texture2D_texture
osg::ref_ptr< osg::StateSet_stateset
osg::ref_ptr< osg::Material_material
unsigned int _textureUnit

Detailed Description

ShadowedTexture provides an implementation of shadow textures.


Constructor & Destructor Documentation

osgShadow::ShadowTexture::ShadowTexture ( )
osgShadow::ShadowTexture::ShadowTexture ( const ShadowTexture es,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)
virtual osgShadow::ShadowTexture::~ShadowTexture ( ) [inline, protected, virtual]

Member Function Documentation

virtual void osgShadow::ShadowTexture::cleanSceneGraph ( ) [virtual]

Clean scene graph from any shadow technique specific nodes, state and drawables.

Reimplemented from osgShadow::ShadowTechnique.

virtual void osgShadow::ShadowTexture::cull ( osgUtil::CullVisitor cv) [virtual]

run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique.

Reimplemented from osgShadow::ShadowTechnique.

unsigned int osgShadow::ShadowTexture::getTextureUnit ( ) const [inline]

Get the texture unit that the shadow texture will be applied on.

virtual void osgShadow::ShadowTexture::init ( ) [virtual]

initialize the ShadowedScene and local cached data structures.

Reimplemented from osgShadow::ShadowTechnique.

osgShadow::ShadowTexture::META_Object ( osgShadow  ,
ShadowTexture   
)
void osgShadow::ShadowTexture::setTextureUnit ( unsigned int  unit)

Set the texture unit that the shadow texture will be applied on.

virtual void osgShadow::ShadowTexture::update ( osg::NodeVisitor nv) [virtual]

run the update traversal of the ShadowedScene and update any loca chached data structures.

Reimplemented from osgShadow::ShadowTechnique.


Member Data Documentation

unsigned int osgShadow::ShadowTexture::_textureUnit [protected]

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

osg logo
Generated at Tue Mar 22 2011 13:20:28 for the OpenSceneGraph by doxygen 1.7.3.