14#ifndef OSGUTIL_RENDERLEAF
15#define OSGUTIL_RENDERLEAF 1
26#define OSGUTIL_RENDERBACKEND_USE_REF_PTR
94#ifdef OSGUTIL_RENDERBACKEND_USE_REF_PTR
99 const osg::Drawable* getDrawable()
const {
return _drawable; }
122 RenderLeaf& operator = (
const RenderLeaf&) {
return *
this; }
virtual void releaseGLObjects(osg::State *state=0) const
Definition RenderLeaf:80
void reset()
Definition RenderLeaf:62
StateGraph * _parent
Definition RenderLeaf:92
osg::ref_ptr< osg::Drawable > _drawable
Definition RenderLeaf:95
osg::ref_ptr< osg::RefMatrix > _projection
Definition RenderLeaf:101
unsigned int _traversalOrderNumber
Definition RenderLeaf:105
friend class osgUtil::StateGraph
Allow StateGraph to change the RenderLeaf's _parent.
Definition RenderLeaf:86
RenderLeaf(osg::Drawable *drawable, osg::RefMatrix *projection, osg::RefMatrix *modelview, float depth=0.0f, unsigned int traversalOrderNumber=0)
Definition RenderLeaf:38
virtual void render(osg::RenderInfo &renderInfo, RenderLeaf *previous)
virtual void resizeGLObjectBuffers(unsigned int maxSize)
Definition RenderLeaf:75
void set(osg::Drawable *drawable, osg::RefMatrix *projection, osg::RefMatrix *modelview, float depth=0.0f, unsigned int traversalOrderNumber=0)
Definition RenderLeaf:51
float _depth
Definition RenderLeaf:103
osg::ref_ptr< osg::RefMatrix > _modelview
Definition RenderLeaf:102
bool _dynamic
Definition RenderLeaf:104
const osg::Drawable * getDrawable() const
Definition RenderLeaf:96
@ DYNAMIC
Definition Object:218
DataVariance getDataVariance() const
Definition Object:231
Definition NodeVisitor:25
RefMatrixd RefMatrix
Definition Matrix:28
#define OSGUTIL_EXPORT
Definition osgUtil/Export:40