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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user