13 #include <osg/PrimitiveSet>
26 const osg::CopyOp& copyop);
32 virtual void setIndexBounds(
unsigned int start,
unsigned int count);
33 virtual void getIndexBounds(
unsigned int& start,
unsigned int& count)
const;
40 virtual osg::Object*
clone(
const osg::CopyOp& copyop)
const override {
44 virtual const char*
libraryName()
const override {
return "vrvOsg"; }
45 virtual const char*
className()
const override {
return "DtSharedDrawElementsUInt"; }
46 virtual const GLvoid* getDataPointer()
const override;
47 virtual unsigned int getTotalDataSize()
const override;
48 virtual bool supportsBufferObject()
const override;
49 virtual osg::DrawElements* getDrawElements()
override;
50 virtual const osg::DrawElements* getDrawElements()
const override;
51 virtual void accept(osg::PrimitiveFunctor& functor)
const override;
52 virtual void accept(osg::PrimitiveIndexFunctor& functor)
const override;
53 virtual unsigned int index(
unsigned int pos)
const override;
54 virtual unsigned int getNumIndices()
const override;
55 virtual void offsetIndices(
int offset)
override;
56 virtual unsigned int getNumPrimitives()
const override;
58 virtual void resizeGLObjectBuffers(
unsigned int maxSize)
override;
62 virtual void releaseGLObjects(osg::State* state=0)
const override;
63 virtual void computeRange()
const override;
65 virtual void draw(osg::State& state,
bool useVertexBufferObjects)
const override;
unsigned int myCount
Definition: DtSharedDrawElementsUInt.h:72
unsigned int myStartIndex
Definition: DtSharedDrawElementsUInt.h:71
This is a utility class used to allow sharing of index buffers while allowing for unique start and co...
Definition: DtSharedDrawElementsUInt.h:21
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
virtual bool isSameKindAs(const osg::Object *obj) const override
Definition: DtSharedDrawElementsUInt.h:42
virtual const char * libraryName() const override
Definition: DtSharedDrawElementsUInt.h:44
virtual const char * className() const override
Definition: DtSharedDrawElementsUInt.h:45
unsigned int GLenum
Definition: DtGlTextureBufferObject.h:18
virtual osg::Object * clone(const osg::CopyOp ©op) const override
Definition: DtSharedDrawElementsUInt.h:40
const char int mode
Definition: ioapi.h:38
Contains DLL export macros.
virtual osg::Object * cloneType() const override
All of the remaining functions are simply necessary to implement the DrawElements API forwarded to th...
Definition: DtSharedDrawElementsUInt.h:38
voidpf uLong offset
Definition: ioapi.h:42
osg::ref_ptr< osg::DrawElementsUInt > myIndices
Definition: DtSharedDrawElementsUInt.h:70