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

List of all members.

Public Types

typedef VectorGLubyte vector_type

Public Member Functions

 DrawElementsUByte (GLenum mode=0)
 DrawElementsUByte (const DrawElementsUByte &array, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 DrawElementsUByte (GLenum mode, unsigned int no, const GLubyte *ptr, int numInstances=0)
 DrawElementsUByte (GLenum mode, unsigned int no)
virtual ObjectcloneType () const
 Clone the type of an object, with Object* return type.
virtual Objectclone (const CopyOp &copyop) const
 Clone an object, with Object* return type.
virtual bool isSameKindAs (const Object *obj) const
virtual const char * libraryName () const
 return the name of the object's library.
virtual const char * className () const
 return the name of the object's class type.
virtual const GLvoid * getDataPointer () const
virtual unsigned int getTotalDataSize () const
virtual bool supportsBufferObject () const
virtual void draw (State &state, bool useVertexBufferObjects) const
virtual void accept (PrimitiveFunctor &functor) const
virtual void accept (PrimitiveIndexFunctor &functor) const
virtual unsigned int getNumIndices () const
virtual unsigned int index (unsigned int pos) const
virtual void offsetIndices (int offset)
virtual void reserveElements (unsigned int numIndices)
virtual void setElement (unsigned int i, unsigned int v)
virtual unsigned int getElement (unsigned int i)
virtual void addElement (unsigned int v)

Protected Member Functions

virtual ~DrawElementsUByte ()

Member Typedef Documentation

Reimplemented from osg::MixinVector.


Constructor & Destructor Documentation

osg::DrawElementsUByte::DrawElementsUByte ( GLenum  mode = 0) [inline]
osg::DrawElementsUByte::DrawElementsUByte ( const DrawElementsUByte array,
const CopyOp copyop = CopyOp::SHALLOW_COPY 
) [inline]
osg::DrawElementsUByte::DrawElementsUByte ( GLenum  mode,
unsigned int  no,
const GLubyte *  ptr,
int  numInstances = 0 
) [inline]
Parameters:
noNumber of intended elements. This will be the size of the underlying vector.
osg::DrawElementsUByte::DrawElementsUByte ( GLenum  mode,
unsigned int  no 
) [inline]
Parameters:
noNumber of intended elements. This will be the size of the underlying vector.
virtual osg::DrawElementsUByte::~DrawElementsUByte ( ) [protected, virtual]

Member Function Documentation

virtual void osg::DrawElementsUByte::accept ( PrimitiveFunctor functor) const [virtual]

Implements osg::PrimitiveSet.

virtual void osg::DrawElementsUByte::accept ( PrimitiveIndexFunctor functor) const [virtual]

Implements osg::PrimitiveSet.

virtual void osg::DrawElementsUByte::addElement ( unsigned int  v) [inline, virtual]

Implements osg::DrawElements.

virtual const char* osg::DrawElementsUByte::className ( ) const [inline, virtual]

return the name of the object's class type.

Must be defined by derived classes.

Reimplemented from osg::PrimitiveSet.

virtual Object* osg::DrawElementsUByte::clone ( const CopyOp ) const [inline, virtual]

Clone an object, with Object* return type.

Must be defined by derived classes.

Implements osg::Object.

virtual Object* osg::DrawElementsUByte::cloneType ( ) const [inline, virtual]

Clone the type of an object, with Object* return type.

Must be defined by derived classes.

Implements osg::Object.

virtual void osg::DrawElementsUByte::draw ( State state,
bool  useVertexBufferObjects 
) const [virtual]

Implements osg::PrimitiveSet.

virtual const GLvoid* osg::DrawElementsUByte::getDataPointer ( ) const [inline, virtual]

Reimplemented from osg::PrimitiveSet.

virtual unsigned int osg::DrawElementsUByte::getElement ( unsigned int  i) [inline, virtual]

Implements osg::DrawElements.

virtual unsigned int osg::DrawElementsUByte::getNumIndices ( ) const [inline, virtual]

Implements osg::PrimitiveSet.

virtual unsigned int osg::DrawElementsUByte::getTotalDataSize ( ) const [inline, virtual]

Reimplemented from osg::PrimitiveSet.

virtual unsigned int osg::DrawElementsUByte::index ( unsigned int  pos) const [inline, virtual]

Implements osg::PrimitiveSet.

virtual bool osg::DrawElementsUByte::isSameKindAs ( const Object obj) const [inline, virtual]

Reimplemented from osg::PrimitiveSet.

References NULL.

virtual const char* osg::DrawElementsUByte::libraryName ( ) const [inline, virtual]

return the name of the object's library.

Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name.

Reimplemented from osg::PrimitiveSet.

virtual void osg::DrawElementsUByte::offsetIndices ( int  offset) [virtual]

Implements osg::PrimitiveSet.

virtual void osg::DrawElementsUByte::reserveElements ( unsigned int  numIndices) [inline, virtual]

Implements osg::DrawElements.

virtual void osg::DrawElementsUByte::setElement ( unsigned int  i,
unsigned int  v 
) [inline, virtual]

Implements osg::DrawElements.

virtual bool osg::DrawElementsUByte::supportsBufferObject ( ) const [inline, virtual]

Reimplemented from osg::PrimitiveSet.


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.