class osg::PrimitiveSet


Inheritance:


Public Classes

[more]enum Type
[more]enum Mode

Public Methods

[more] PrimitiveSet(Type primType=PrimitiveType, GLenum mode=0)
[more] PrimitiveSet(const PrimitiveSet& prim, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
[more]virtual bool isSameKindAs(const Object* obj) const
[more]virtual const char* libraryName() const
[more]virtual const char* className() const
[more]Type getType() const
[more]void setMode(GLenum mode)
[more]GLenum getMode() const
[more]virtual void draw(State& state, bool useVertexBufferObjects) const
[more]virtual void accept(Drawable::PrimitiveFunctor& functor) const
[more]virtual void accept(Drawable::PrimitiveIndexFunctor& functor) const
[more]virtual unsigned int index(unsigned int pos) const
[more]virtual unsigned int getNumIndices() const
[more]virtual void offsetIndices(int offset)
[more]virtual unsigned int getNumPrimitives() const

Protected Fields

[more]Type _primitiveType
[more]GLenum _mode

Protected Methods

[more]virtual ~PrimitiveSet()


Inherited from Object:

Public Classes

oenum DataVariance

Public Methods

ovirtual Object* cloneType() const
ovirtual Object* clone(const CopyOp&) const
oinline void setDataVariance(DataVariance dv)
oinline DataVariance getDataVariance() const
oinline void setUserData(Referenced* obj)
oinline Referenced* getUserData()
oinline const Referenced* getUserData() const

Protected Fields

oDataVariance _dataVariance
oref_ptr<Referenced> _userData


Inherited from Referenced:

Public Methods

oinline Referenced& operator = (const Referenced&)
ostatic void setDeleteHandler(DeleteHandler* handler)
ostatic DeleteHandler* getDeleteHandler()
oinline void ref() const
oinline void unref_nodelete() const
oinline int referenceCount() const
oinline void unref() const

Protected Fields

omutable OpenThreads::Mutex _refMutex
omutable int _refCount


Documentation

oenum Type

o PrimitiveType

o DrawArraysPrimitiveType

o DrawArrayLengthsPrimitiveType

o DrawElementsUBytePrimitiveType

o DrawElementsUShortPrimitiveType

o DrawElementsUIntPrimitiveType

oenum Mode

o POINTS

o LINES

o LINE_STRIP

o LINE_LOOP

o TRIANGLES

o TRIANGLE_STRIP

o TRIANGLE_FAN

o QUADS

o QUAD_STRIP

o POLYGON

o PrimitiveSet(Type primType=PrimitiveType, GLenum mode=0)

o PrimitiveSet(const PrimitiveSet& prim, const CopyOp& copyop=CopyOp::SHALLOW_COPY)

ovirtual bool isSameKindAs(const Object* obj) const

ovirtual const char* libraryName() const

ovirtual const char* className() const

oType getType() const

ovoid setMode(GLenum mode)

oGLenum getMode() const

ovirtual void draw(State& state, bool useVertexBufferObjects) const

ovirtual void accept(Drawable::PrimitiveFunctor& functor) const

ovirtual void accept(Drawable::PrimitiveIndexFunctor& functor) const

ovirtual unsigned int index(unsigned int pos) const

ovirtual unsigned int getNumIndices() const

ovirtual void offsetIndices(int offset)

ovirtual unsigned int getNumPrimitives() const

ovirtual ~PrimitiveSet()

oType _primitiveType

oGLenum _mode


Direct child classes:
DrawElementsUShort
DrawElementsUInt
DrawElementsUByte
DrawArrays
DrawArrayLengths

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.