Added a concrete osg::DeleteHandler implementation which provides support for

retain objects for several frames before deleting them.  Also added RenderStageCache
into CullVistor.cpp that is used for handling RTT osg::Camera's that are being
used in double buffered SceneView usage.
This commit is contained in:
Robert Osfield
2007-02-02 12:41:13 +00:00
parent 158921574c
commit 6d9641a78b
11 changed files with 309 additions and 67 deletions

View File

@@ -72,8 +72,19 @@ class OSGUTIL_EXPORT RenderLeaf : public osg::Referenced
public:
StateGraph* _parent;
#if 1
osg::Drawable* _drawable;
osg::Drawable* getDrawable() { return _drawable; }
osg::Drawable* getDrawable() const { return _drawable; }
#else
osg::ref_ptr<osg::Drawable> _drawable;
osg::Drawable* getDrawable() { return _drawable.get(); }
osg::Drawable* getDrawable() const { return _drawable.get(); }
#endif
osg::ref_ptr<osg::RefMatrix> _projection;
osg::ref_ptr<osg::RefMatrix> _modelview;
float _depth;