Public Member Functions | Protected Member Functions | Protected Attributes

osgShadow::ShadowTexture Class Reference

Inheritance diagram for osgShadow::ShadowTexture:
osgShadow::ShadowTechnique osg::Object osg::Referenced

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)
unsigned int getTextureUnit () const
virtual void init ()
virtual void update (osg::NodeVisitor &nv)
virtual void cull (osgUtil::CullVisitor &cv)
virtual void cleanSceneGraph ()

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: