16 #ifndef AGXOSG_RENDERTASKDRAWABLE
17 #define AGXOSG_RENDERTASKDRAWABLE
20 #include <osg/Drawable>
21 #include <osg/Version>
31 class ParticleDrawableCallback;
41 void setDrawable(osg::Drawable *drawable ) { m_drawable = drawable; }
50 virtual const char*
className()
const {
return "RenderTaskDrawable"; }
54 # if OSG_VERSION_GREATER_OR_EQUAL(3,4,0)
55 virtual osg::BoundingSphere computeBound()
const;
56 virtual osg::BoundingBox computeBoundingBox()
const;
58 virtual osg::BoundingBox computeBound()
const;
62 virtual void drawImplementation(osg::RenderInfo& renderInfo)
const;
65 friend class ParticleDrawableCallback;
agx::observer_ptr< agx::Task > m_renderTask
osg::Drawable * getDrawable()
Return the drawable that will be drawn for each particle.
A representation of a generic task.
virtual const char * libraryName() const
osg::ref_ptr< osg::Drawable > m_drawable
virtual const char * className() const
void setDrawable(osg::Drawable *drawable)
Set the drawable that will be drawn for each particle.
virtual osg::Object * clone(const osg::CopyOp ©op) const
virtual ~RenderTaskDrawable()
virtual bool isSameKindAs(const osg::Object *obj) const
virtual osg::Object * cloneType() const