class osg::Primitive


Inheritance:


Public Methods

[more] Primitive(Type primType=PrimitiveType, GLenum mode=0)
[more] Primitive(const Primitive& 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&)
[more]virtual void offsetIndices(int offset) = 0

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 const int referenceCount() const

Protected Fields

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 Primitive(Type primType=PrimitiveType, GLenum mode=0)

o Primitive(const Primitive& 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&)

ovirtual void offsetIndices(int offset) = 0

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