openscenegraph
Public Member Functions | Protected Member Functions
osg::DrawElements Class Reference
Inheritance diagram for osg::DrawElements:
osg::PrimitiveSet osg::BufferData osg::Object osg::Referenced osg::DrawElementsUByte osg::DrawElementsUInt osg::DrawElementsUShort

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)
osg::ElementBufferObjectgetElementBufferObject ()
const osg::ElementBufferObjectgetElementBufferObject () const
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]

Get the ElementBufferObject. If no EBO is assigned returns NULL

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

Get the const ElementBufferObject. If no EBO is assigned returns NULL

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

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

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