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

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