Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osg::DrawArrays Class Reference

Inheritance diagram for osg::DrawArrays:

Inheritance graph
[legend]
List of all members.

Public Methods

 DrawArrays (GLenum mode=0)
 DrawArrays (GLenum mode, GLint first, GLsizei count)
 DrawArrays (const DrawArrays &da, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
virtual Object * cloneType () const
 Clone the type of an object, with Object* return type.

virtual Object * clone (const CopyOp &copyop) const
 Clone the 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.

void set (GLenum mode, GLint first, GLsizei count)
void setFirst (GLint first)
GLint getFirst () const
void setCount (GLsizei count)
GLsizei getCount () const
virtual void draw () const
virtual void accept (Drawable::PrimitiveFunctor &functor)
virtual void offsetIndices (int offset)

Protected Attributes

GLint _first
GLsizei _count

Constructor & Destructor Documentation

osg::DrawArrays::DrawArrays (  GLenum    mode = 0 )  [inline]
 

osg::DrawArrays::DrawArrays (  GLenum    mode,
GLint    first,
GLsizei    count
)  [inline]
 

osg::DrawArrays::DrawArrays (  const DrawArrays &    da,
const CopyOp &    copyop = CopyOp::SHALLOW_COPY
)  [inline]
 


Member Function Documentation

virtual void osg::DrawArrays::accept (  Drawable::PrimitiveFunctor &    functor )  [virtual]
 

Reimplemented from osg::Primitive.

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

return the name of the object's class type.

Must be defined by derived classes.

Reimplemented from osg::Primitive.

virtual Object* osg::DrawArrays::clone (  const CopyOp &    copyop )  const [inline, virtual]
 

Clone the an object, with Object* return type.

Must be defined by derived classes.

Implements osg::Object.

virtual Object* osg::DrawArrays::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::DrawArrays::draw (    )  const [virtual]
 

Implements osg::Primitive.

GLsizei osg::DrawArrays::getCount (    )  const [inline]
 

GLint osg::DrawArrays::getFirst (    )  const [inline]
 

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

Reimplemented from osg::Primitive.

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

return the name of the object's library.

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

Reimplemented from osg::Primitive.

virtual void osg::DrawArrays::offsetIndices (  int    offset )  [inline, virtual]
 

Implements osg::Primitive.

void osg::DrawArrays::set (  GLenum    mode,
GLint    first,
GLsizei    count
)  [inline]
 

void osg::DrawArrays::setCount (  GLsizei    count )  [inline]
 

void osg::DrawArrays::setFirst (  GLint    first )  [inline]
 


Member Data Documentation

GLsizei osg::DrawArrays::_count [protected]
 

GLint osg::DrawArrays::_first [protected]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:24 2002 for the Open Scene Graph by doxygen 1.2.16.