OpenSceneGraph  3.0.1
Public Member Functions | Protected Member Functions
osg::DrawElements Class Reference
Inheritance diagram for osg::DrawElements:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DrawElements (Type primType=PrimitiveType, GLenum mode=0, int numInstances=0)
 DrawElements (const DrawElements &copy, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
virtual DrawElementsgetDrawElements ()
virtual const DrawElementsgetDrawElements () const
void setElementBufferObject (osg::ElementBufferObject *ebo)
 Set the ElementBufferObject.
osg::ElementBufferObjectgetElementBufferObject ()
 Get the ElementBufferObject.
const osg::ElementBufferObjectgetElementBufferObject () const
 Get the const ElementBufferObject.
virtual void reserveElements (unsigned int numIndices)=0
virtual void setElement (unsigned int, unsigned int)=0
virtual unsigned int getElement (unsigned int)=0
virtual void addElement (unsigned int)=0

Protected Member Functions

virtual ~DrawElements ()

Constructor & Destructor Documentation

osg::DrawElements::DrawElements ( Type  primType = PrimitiveType,
GLenum  mode = 0,
int  numInstances = 0 
) [inline]
osg::DrawElements::DrawElements ( const DrawElements copy,
const CopyOp copyop = CopyOp::SHALLOW_COPY 
) [inline]
virtual osg::DrawElements::~DrawElements ( ) [inline, protected, virtual]

Member Function Documentation

virtual void osg::DrawElements::addElement ( unsigned  int) [pure 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 unsigned int osg::DrawElements::getElement ( unsigned  int) [pure virtual]
osg::ElementBufferObject* osg::DrawElements::getElementBufferObject ( ) [inline]

Get the ElementBufferObject.

If no EBO is assigned returns NULL

References osg::BufferData::_bufferObject, and osg::ref_ptr::get().

const osg::ElementBufferObject* osg::DrawElements::getElementBufferObject ( ) const [inline]

Get the const ElementBufferObject.

If no EBO is assigned returns NULL

References osg::BufferData::_bufferObject, and osg::ref_ptr::get().

virtual void osg::DrawElements::reserveElements ( unsigned int  numIndices) [pure virtual]
virtual void osg::DrawElements::setElement ( unsigned  int,
unsigned  int 
) [pure virtual]
void osg::DrawElements::setElementBufferObject ( osg::ElementBufferObject ebo) [inline]

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

osg logo
Generated at Mon Oct 3 2011 12:39:43 for the OpenSceneGraph by doxygen 1.7.5.