Public Member Functions | |
DrawElements (Type primType=PrimitiveType, GLenum mode=0) | |
DrawElements (const DrawElements ©, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
virtual DrawElements * | getDrawElements () |
virtual const DrawElements * | getDrawElements () const |
virtual void | dirty () |
Dirty the primitive, which increments the modified count, to force buffer objects to update. | |
void | setElementBufferObject (osg::ElementBufferObject *ebo) |
Set the ElementBufferObject. | |
osg::ElementBufferObject * | getElementBufferObject () |
Get the ElementBufferObject. | |
const osg::ElementBufferObject * | getElementBufferObject () const |
Get the const ElementBufferObject. | |
void | setElementBufferObjectOffset (const GLvoid *offset) const |
Set the offset into the ElementBufferObject, if used. | |
const GLvoid * | getElementBufferObjectOffset () const |
Get the offset into the ElementBufferOffset, if used. | |
virtual void | resizeGLObjectBuffers (unsigned int maxSize) |
Resize any per context GLObject buffers to specified size. | |
virtual void | releaseGLObjects (State *state=0) const |
If State is non-zero, this function releases OpenGL objects for the specified graphics context. | |
Protected Member Functions | |
virtual | ~DrawElements () |
Protected Attributes | |
osg::ref_ptr < ElementBufferObject > | _ebo |
const GLvoid * | _eboOffset |
osg::DrawElements::DrawElements | ( | Type | primType = PrimitiveType , |
|
GLenum | mode = 0 | |||
) | [inline] |
osg::DrawElements::DrawElements | ( | const DrawElements & | copy, | |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY | |||
) | [inline] |
virtual osg::DrawElements::~DrawElements | ( | ) | [inline, protected, virtual] |
virtual DrawElements* osg::DrawElements::getDrawElements | ( | ) | [inline, virtual] |
Reimplemented from osg::PrimitiveSet.
virtual const DrawElements* osg::DrawElements::getDrawElements | ( | ) | const [inline, virtual] |
Reimplemented from osg::PrimitiveSet.
virtual void osg::DrawElements::dirty | ( | ) | [inline, virtual] |
Dirty the primitive, which increments the modified count, to force buffer objects to update.
Reimplemented from osg::PrimitiveSet.
void osg::DrawElements::setElementBufferObject | ( | osg::ElementBufferObject * | ebo | ) | [inline] |
Set the ElementBufferObject.
osg::ElementBufferObject* osg::DrawElements::getElementBufferObject | ( | ) | [inline] |
Get the ElementBufferObject.
If no EBO is assigned returns NULL
const osg::ElementBufferObject* osg::DrawElements::getElementBufferObject | ( | ) | const [inline] |
Get the const ElementBufferObject.
If no EBO is assigned returns NULL
void osg::DrawElements::setElementBufferObjectOffset | ( | const GLvoid * | offset | ) | const [inline] |
Set the offset into the ElementBufferObject, if used.
const GLvoid* osg::DrawElements::getElementBufferObjectOffset | ( | ) | const [inline] |
Get the offset into the ElementBufferOffset, if used.
virtual void osg::DrawElements::resizeGLObjectBuffers | ( | unsigned int | maxSize | ) | [inline, virtual] |
virtual void osg::DrawElements::releaseGLObjects | ( | State * | state = 0 |
) | const [inline, virtual] |
If State is non-zero, this function releases OpenGL objects for the specified graphics context.
Otherwise, releases OpenGL objexts for all graphics contexts.
Reimplemented from osg::PrimitiveSet.
osg::ref_ptr<ElementBufferObject> osg::DrawElements::_ebo [protected] |
const GLvoid* osg::DrawElements::_eboOffset [mutable, protected] |