294
294
virtual void resizeGLObjectBuffers(unsigned int maxSize);
296
296
/** If State is non-zero, this function releases OpenGL objects for
297
* the specified graphics context. Otherwise, releases OpenGL objexts
297
* the specified graphics context. Otherwise, releases OpenGL objects
298
298
* for all graphics contexts. */
299
299
virtual void releaseGLObjects(State* state=0) const;
347
347
/** Return the estimated size of GLObjects (display lists/vertex buffer objects) that are associated with this drawable.
348
* This size is used a hint for reuse of deleteed display lists/vertex buffer objects. */
348
* This size is used a hint for reuse of deleted display lists/vertex buffer objects. */
349
349
virtual unsigned int getGLObjectSizeHint() const;
351
351
/** Draw Geometry directly ignoring an OpenGL display list which could be attached.
357
357
/** Return true, osg::Geometry does support accept(Drawable::AttributeFunctor&). */
358
358
virtual bool supports(const Drawable::AttributeFunctor&) const { return true; }
360
/** Accept an Drawable::AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */
360
/** Accept an Drawable::AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. */
361
361
virtual void accept(Drawable::AttributeFunctor& af);
363
363
/** Return true, osg::Geometry does support accept(Drawable::ConstAttributeFunctor&). */
364
364
virtual bool supports(const Drawable::ConstAttributeFunctor&) const { return true; }
366
/** Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. */
366
/** Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. */
367
367
virtual void accept(Drawable::ConstAttributeFunctor& af) const;
369
369
/** Return true, osg::Geometry does support accept(PrimitiveFunctor&). */
370
370
virtual bool supports(const PrimitiveFunctor&) const { return true; }
372
/** Accept a PrimitiveFunctor and call its methods to tell it about the interal primitives that this Drawable has. */
372
/** Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. */
373
373
virtual void accept(PrimitiveFunctor& pf) const;
375
375
/** Return true, osg::Geometry does support accept(PrimitiveIndexFunctor&). */
376
376
virtual bool supports(const PrimitiveIndexFunctor&) const { return true; }
378
/** Accept a PrimitiveFunctor and call its methods to tell it about the interal primitives that this Drawable has. */
378
/** Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. */
379
379
virtual void accept(PrimitiveIndexFunctor& pf) const;