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; }
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
RefMatrixd RefMatrix
Definition Matrix:28
The osgUtil library provides general purpose utility classes such as update, cull and draw traverses,...
Definition NodeVisitor:25
Pure virtual base class for drawable geometry.
Definition Drawable:89
@ DYNAMIC
Definition Object:218
DataVariance getDataVariance() const
Get the data variance of this object.
Definition Object:231
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Base class for providing reference counted objects.
Definition Referenced:44
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
Container class for all data required for rendering of drawables.
Definition RenderLeaf:34
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
StateGraph - contained in a renderBin, defines the scene to be drawn.
Definition StateGraph:42
#define OSGUTIL_EXPORT
Definition Export:40