OpenSceneGraph 2.8.4
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
osg::ElementBufferObject Class Reference
Inheritance diagram for osg::ElementBufferObject:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::pair< BufferEntry,
DrawElements * > 
BufferEntryDrawElementsPair
typedef std::vector
< BufferEntryDrawElementsPair
BufferEntryDrawElementsPairs

Public Member Functions

 ElementBufferObject ()
 ElementBufferObject (const ElementBufferObject &pbo, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_Object (osg, ElementBufferObject)
unsigned int addDrawElements (osg::DrawElements *PrimitiveSet)
void removeDrawElements (osg::DrawElements *PrimitiveSet)
void setDrawElements (unsigned int i, DrawElements *PrimitiveSet)
DrawElementsgetDrawElements (unsigned int i)
const DrawElementsgetDrawElements (unsigned int i) const
const GLvoid * getOffset (unsigned int i) const
virtual void compileBuffer (State &state) const
virtual void resizeGLObjectBuffers (unsigned int maxSize)
 Resize any per context GLObject buffers to specified size.

Protected Member Functions

virtual ~ElementBufferObject ()

Protected Attributes

BufferEntryDrawElementsPairs _bufferEntryDrawElementsPairs

Member Typedef Documentation


Constructor & Destructor Documentation

osg::ElementBufferObject::ElementBufferObject ( )
osg::ElementBufferObject::ElementBufferObject ( const ElementBufferObject pbo,
const CopyOp copyop = CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osg::ElementBufferObject::~ElementBufferObject ( ) [protected, virtual]

Member Function Documentation

unsigned int osg::ElementBufferObject::addDrawElements ( osg::DrawElements PrimitiveSet)
virtual void osg::ElementBufferObject::compileBuffer ( State state) const [virtual]
DrawElements* osg::ElementBufferObject::getDrawElements ( unsigned int  i) [inline]
const DrawElements* osg::ElementBufferObject::getDrawElements ( unsigned int  i) const [inline]
const GLvoid* osg::ElementBufferObject::getOffset ( unsigned int  i) const [inline]
osg::ElementBufferObject::META_Object ( osg  ,
ElementBufferObject   
)
void osg::ElementBufferObject::removeDrawElements ( osg::DrawElements PrimitiveSet)
virtual void osg::ElementBufferObject::resizeGLObjectBuffers ( unsigned int  maxSize) [virtual]

Resize any per context GLObject buffers to specified size.

Reimplemented from osg::BufferObject.

void osg::ElementBufferObject::setDrawElements ( unsigned int  i,
DrawElements PrimitiveSet 
)

Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Sun Jan 8 2012 13:16:06 for the OpenSceneGraph by doxygen 1.7.4.