class osg::PrimitiveSet


Inheritance:


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() const = 0
[more]virtual void accept(Drawable::PrimitiveFunctor& functor) const = 0
[more]virtual unsigned int index(unsigned int pos) const = 0
[more]virtual unsigned int getNumIndices() const = 0
[more]virtual void offsetIndices(int offset) = 0
[more]virtual unsigned int getNumPrimitives() const

Public Members

[more]enum Type
[more]enum Mode

Protected Fields

[more]Type _primitiveType
[more]GLenum _mode


Inherited from Object:

Public Methods

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

Public Members

oenum DataVariance

Protected Fields

oDataVariance _dataVariance
oref_ptr<Referenced> _userData


Inherited from Referenced:

Public Methods

oinline Referenced& operator = (Referenced&)
oinline void ref() const
oinline void unref() const
oinline void unref_nodelete() const
oinline int referenceCount() const
oinline static int createdCount()
oinline static int deletedCount()

Protected Fields

omutable int _refCount
ostatic int _createdCount
ostatic int _deletedCount


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() const = 0

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

ovirtual unsigned int index(unsigned int pos) const = 0

ovirtual unsigned int getNumIndices() const = 0

ovirtual void offsetIndices(int offset) = 0

ovirtual unsigned int getNumPrimitives() const

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++.