Further work on osgShadow::ShadowTechnique API
This commit is contained in:
@@ -38,19 +38,26 @@ class OSGSHADOW_EXPORT ShadowTechnique : public osg::Object
|
||||
|
||||
ShadowedScene* getShadowedScene() { return _shadowedScene; }
|
||||
|
||||
/** initialize the ShadowedScene and local cached data structures.*/
|
||||
virtual void init();
|
||||
|
||||
/** run the update traversal of the ShadowedScene and update any loca chached data structures.*/
|
||||
virtual void update(osg::NodeVisitor& nv);
|
||||
|
||||
/** run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique.*/
|
||||
virtual void cull(osg::NodeVisitor& nv);
|
||||
|
||||
/** Clean scene graph from any shadow technique specific nodes, state and drawables.*/
|
||||
virtual void cleanSceneGraph();
|
||||
|
||||
virtual void traverse(osg::NodeVisitor& nv);
|
||||
|
||||
/** Dirty so that cached data structurese are updated.*/
|
||||
virtual void dirty() { _dirty = true; }
|
||||
|
||||
protected :
|
||||
|
||||
virtual ~ShadowTechnique() {}
|
||||
virtual ~ShadowTechnique();
|
||||
|
||||
friend class ShadowedScene;
|
||||
|
||||
|
||||
@@ -30,9 +30,21 @@ class OSGSHADOW_EXPORT ShadowVolume : public ShadowTechnique
|
||||
|
||||
META_Object(osgShadow, ShadowVolume);
|
||||
|
||||
/** initialize the ShadowedScene and local cached data structures.*/
|
||||
virtual void init();
|
||||
|
||||
/** run the update traversal of the ShadowedScene and update any loca chached data structures.*/
|
||||
virtual void update(osg::NodeVisitor& nv);
|
||||
|
||||
/** run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique.*/
|
||||
virtual void cull(osg::NodeVisitor& nv);
|
||||
|
||||
/** Clean scene graph from any shadow technique specific nodes, state and drawables.*/
|
||||
virtual void cleanSceneGraph();
|
||||
|
||||
protected :
|
||||
|
||||
virtual ~ShadowVolume() {}
|
||||
virtual ~ShadowVolume();
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -46,6 +46,9 @@ class OSGSHADOW_EXPORT ShadowedScene : public osg::Group
|
||||
ShadowTechnique* getShadowTechnique() { return _shadowTechnique.get(); }
|
||||
const ShadowTechnique* getShadowTechnique() const { return _shadowTechnique.get(); }
|
||||
|
||||
/** Clean scene graph from any shadow technique specific nodes, state and drawables.*/
|
||||
void cleanSceneGraph();
|
||||
|
||||
/** Dirty any cache data structures held in the attached ShadowTechnqiue.*/
|
||||
void dirty();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user