![]() |
VR-Forces Developer's Guide
|
This is a utility class used to allow sharing of index buffers while allowing for unique start and count, and mode parameters for rendering.

Public Member Functions | |
| DtSharedDrawElementsUInt (GLenum mode, osg::DrawElementsUInt *indices) | |
| DtSharedDrawElementsUInt (const DtSharedDrawElementsUInt ©, const osg::CopyOp ©op) | |
| virtual void | setIndexBounds (unsigned int start, unsigned int count) |
| virtual void | getIndexBounds (unsigned int &start, unsigned int &count) const |
| virtual osg::Object * | cloneType () const override |
| virtual osg::Object * | clone (const osg::CopyOp ©op) const override |
| virtual bool | isSameKindAs (const osg::Object *obj) const override |
| virtual const char * | libraryName () const override |
| virtual const char * | className () const override |
| virtual const GLvoid * | getDataPointer () const override |
| virtual unsigned int | getTotalDataSize () const override |
| virtual bool | supportsBufferObject () const override |
| virtual osg::DrawElements * | getDrawElements () override |
| virtual const osg::DrawElements * | getDrawElements () const override |
| virtual void | accept (osg::PrimitiveFunctor &functor) const override |
| virtual void | accept (osg::PrimitiveIndexFunctor &functor) const override |
| virtual unsigned int | index (unsigned int pos) const override |
| virtual unsigned int | getNumIndices () const override |
| virtual void | offsetIndices (int offset) override |
| virtual unsigned int | getNumPrimitives () const override |
| virtual void | resizeGLObjectBuffers (unsigned int maxSize) override |
| virtual void | releaseGLObjects (osg::State *state=0) const override |
| virtual void | computeRange () const override |
| virtual void | draw (osg::State &state, bool useVertexBufferObjects) const override |
Protected Attributes | |
| osg::ref_ptr < osg::DrawElementsUInt > | myIndices |
| unsigned int | myStartIndex |
| unsigned int | myCount |
| makVrv::DtSharedDrawElementsUInt::DtSharedDrawElementsUInt | ( | GLenum | mode, |
| osg::DrawElementsUInt * | indices | ||
| ) |
| makVrv::DtSharedDrawElementsUInt::DtSharedDrawElementsUInt | ( | const DtSharedDrawElementsUInt & | copy, |
| const osg::CopyOp & | copyop | ||
| ) |
|
virtual |
Set the index bounds. This allows for independent start and sizes of elements while still sharing the same buffer.
|
virtual |
|
inlineoverridevirtual |
All of the remaining functions are simply necessary to implement the DrawElements API forwarded to the indices member.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Resize any per context GLObject buffers to specified size.
|
overridevirtual |
If State is non-zero, this function releases OpenGL objects for the specified graphics context.
Otherwise, releases OpenGL objects for all graphics contexts.
|
overridevirtual |
|
overridevirtual |
Draw override.
|
protected |