PrimitiveSet
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSG_PRIMITIVESET
#define OSG_PRIMITIVESET 1
#include <osg/GL>
#include <osg/Object>
#include <osg/buffered_value>
#include <osg/Vec2>
#include <osg/Vec3>
#include <osg/Vec4>
#include <osg/Vec2d>
#include <osg/Vec3d>
#include <osg/Vec4d>
#include <osg/MixinVector>
#include <osg/BufferObject>
#include <vector>
#define OSG_HAS_MULTIDRAWARRAYS
namespace osg {
typedef MixinVector<GLsizei> VectorGLsizei;
typedef MixinVector<GLubyte> VectorGLubyte;
typedef MixinVector<GLushort> VectorGLushort;
typedef MixinVector<GLuint> VectorGLuint;
class State;
class PrimitiveFunctor
{
public:
virtual ~PrimitiveFunctor() {}
virtual void setVertexArray(unsigned int count,const Vec2* vertices) = 0;
virtual void setVertexArray(unsigned int count,const Vec3* vertices) = 0;
virtual void setVertexArray(unsigned int count,const Vec4* vertices) = 0;
virtual void setVertexArray(unsigned int count,const Vec2d* vertices) = 0;
virtual void setVertexArray(unsigned int count,const Vec3d* vertices) = 0;
virtual void setVertexArray(unsigned int count,const Vec4d* vertices) = 0;
virtual void drawArrays(GLenum mode,GLint first,GLsizei count) = 0;
virtual void drawElements(GLenum mode,GLsizei count,const GLubyte* indices) = 0;
virtual void drawElements(GLenum mode,GLsizei count,const GLushort* indices) = 0;
virtual void drawElements(GLenum mode,GLsizei count,const GLuint* indices) = 0;
};
class PrimitiveIndexFunctor
{
public:
virtual ~PrimitiveIndexFunctor() {}
virtual void setVertexArray(unsigned int count,const Vec2* vertices) = 0;
virtual void setVertexArray(unsigned int count,const Vec3* vertices) = 0;
virtual void setVertexArray(unsigned int count,const Vec4* vertices) = 0;
virtual void setVertexArray(unsigned int count,const Vec2d* vertices) = 0;
virtual void setVertexArray(unsigned int count,const Vec3d* vertices) = 0;
virtual void setVertexArray(unsigned int count,const Vec4d* vertices) = 0;
virtual void drawArrays(GLenum mode,GLint first,GLsizei count) = 0;
virtual void drawElements(GLenum mode,GLsizei count,const GLubyte* indices) = 0;
virtual void drawElements(GLenum mode,GLsizei count,const GLushort* indices) = 0;
virtual void drawElements(GLenum mode,GLsizei count,const GLuint* indices) = 0;
};
class DrawElements;
class OSG_EXPORT PrimitiveSet : public BufferData
{
public:
enum Type
{
PrimitiveType,
DrawArraysPrimitiveType,
DrawArrayLengthsPrimitiveType,
DrawElementsUBytePrimitiveType,
DrawElementsUShortPrimitiveType,
DrawElementsUIntPrimitiveType,
MultiDrawArraysPrimitiveType,
DrawArraysIndirectPrimitiveType,
DrawElementsUByteIndirectPrimitiveType,
DrawElementsUShortIndirectPrimitiveType,
DrawElementsUIntIndirectPrimitiveType,
MultiDrawArraysIndirectPrimitiveType,
MultiDrawElementsUByteIndirectPrimitiveType,
MultiDrawElementsUShortIndirectPrimitiveType,
MultiDrawElementsUIntIndirectPrimitiveType
};
enum Mode
{
POINTS = GL_POINTS,
LINES = GL_LINES,
LINE_STRIP = GL_LINE_STRIP,
LINE_LOOP = GL_LINE_LOOP,
TRIANGLES = GL_TRIANGLES,
TRIANGLE_STRIP = GL_TRIANGLE_STRIP,
TRIANGLE_FAN = GL_TRIANGLE_FAN,
QUADS = GL_QUADS,
QUAD_STRIP = GL_QUAD_STRIP,
POLYGON = GL_POLYGON,
LINES_ADJACENCY = GL_LINES_ADJACENCY,
LINE_STRIP_ADJACENCY = GL_LINE_STRIP_ADJACENCY,
TRIANGLES_ADJACENCY = GL_TRIANGLES_ADJACENCY,
TRIANGLE_STRIP_ADJACENCY = GL_TRIANGLE_STRIP_ADJACENCY,
PATCHES = GL_PATCHES
};
PrimitiveSet(Type primType=PrimitiveType,GLenum mode=0, int numInstances=0):
_primitiveType(primType),
_numInstances(numInstances),
_mode(mode) {}
PrimitiveSet(const PrimitiveSet& prim,const CopyOp& copyop=CopyOp::SHALLOW_COPY):
BufferData(prim,copyop),
_primitiveType(prim._primitiveType),
_numInstances(prim._numInstances),
_mode(prim._mode) {}
virtual bool isSameKindAs(const Object* obj) const { return dynamic_cast<const PrimitiveSet*>(obj)!=NULL; }
virtual const char* libraryName() const { return "osg"; }
virtual const char* className() const { return "PrimitiveSet"; }
Type getType() const { return _primitiveType; }
virtual osg::PrimitiveSet* asPrimitiveSet() { return this; }
virtual const osg::PrimitiveSet* asPrimitiveSet() const { return this; }
virtual const GLvoid* getDataPointer() const { return 0; }
virtual unsigned int getTotalDataSize() const { return 0; }
virtual bool supportsBufferObject() const { return false; }
virtual DrawElements* getDrawElements() { return 0; }
virtual const DrawElements* getDrawElements() const { return 0; }
void setNumInstances(int n) { _numInstances = n; }
int getNumInstances() const { return _numInstances; }
void setMode(GLenum mode) { _mode = mode; }
GLenum getMode() const { return _mode; }
virtual void draw(State& state, bool useVertexBufferObjects) const = 0;
virtual void accept(PrimitiveFunctor& functor) const = 0;
virtual void accept(PrimitiveIndexFunctor& functor) const = 0;
virtual unsigned int index(unsigned int pos) const = 0;
virtual unsigned int getNumIndices() const = 0;
virtual void offsetIndices(int offset) = 0;
virtual unsigned int getNumPrimitives() const;
virtual void computeRange() const {}
protected:
virtual ~PrimitiveSet() {}
Type _primitiveType;
int _numInstances;
GLenum _mode;
};
class OSG_EXPORT DrawArrays : public PrimitiveSet
{
public:
DrawArrays(GLenum mode=0):
PrimitiveSet(DrawArraysPrimitiveType,mode),
_first(0),
_count(0) {}
DrawArrays(GLenum mode, GLint first, GLsizei count, int numInstances=0):
PrimitiveSet(DrawArraysPrimitiveType, mode, numInstances),
_first(first),
_count(count) {}
DrawArrays(const DrawArrays& da,const CopyOp& copyop=CopyOp::SHALLOW_COPY):
PrimitiveSet(da,copyop),
_first(da._first),
_count(da._count) {}
virtual Object* cloneType() const { return new DrawArrays(); }
virtual Object* clone(const CopyOp& copyop) const { return new DrawArrays(*this,copyop); }
virtual bool isSameKindAs(const Object* obj) const { return dynamic_cast<const DrawArrays*>(obj)!=NULL; }
virtual const char* libraryName() const { return "osg"; }
virtual const char* className() const { return "DrawArrays"; }
void set(GLenum mode,GLint first, GLsizei count)
{
_mode = mode;
_first = first;
_count = count;
}
void setFirst(GLint first) { _first = first; }
GLint getFirst() const { return _first; }
void setCount(GLsizei count) { _count = count; }
GLsizei getCount() const { return _count; }
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 { return static_cast<unsigned int>(_count); }
virtual unsigned int index(unsigned int pos) const { return static_cast<unsigned int>(_first)+pos; }
virtual void offsetIndices(int offset) { _first += offset; }
protected:
virtual ~DrawArrays() {}
GLint _first;
GLsizei _count;
};
class OSG_EXPORT DrawArrayLengths : public PrimitiveSet, public VectorGLsizei
{
public:
typedef VectorGLsizei vector_type;
DrawArrayLengths(GLenum mode=0):
PrimitiveSet(DrawArrayLengthsPrimitiveType,mode),
_first(0) {}
DrawArrayLengths(const DrawArrayLengths& dal,const CopyOp& copyop=CopyOp::SHALLOW_COPY):
PrimitiveSet(dal,copyop),
vector_type(dal),
_first(dal._first) {}
DrawArrayLengths(GLenum mode, GLint first, unsigned int no, GLsizei* ptr) :
PrimitiveSet(DrawArrayLengthsPrimitiveType,mode),
vector_type(ptr,ptr+no),
_first(first) {}
DrawArrayLengths(GLenum mode,GLint first, unsigned int no) :
PrimitiveSet(DrawArrayLengthsPrimitiveType,mode),
vector_type(no),
_first(first) {}
DrawArrayLengths(GLenum mode,GLint first) :
PrimitiveSet(DrawArrayLengthsPrimitiveType,mode),
vector_type(),
_first(first) {}
virtual Object* cloneType() const { return new DrawArrayLengths(); }
virtual Object* clone(const CopyOp& copyop) const { return new DrawArrayLengths(*this,copyop); }
virtual bool isSameKindAs(const Object* obj) const { return dynamic_cast<const DrawArrayLengths*>(obj)!=NULL; }
virtual const char* libraryName() const { return "osg"; }
virtual const char* className() const { return "DrawArrayLengths"; }
void setFirst(GLint first) { _first = first; }
GLint getFirst() const { return _first; }
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 { return _first+pos; }
virtual void offsetIndices(int offset) { _first += offset; }
virtual unsigned int getNumPrimitives() const;
protected:
virtual ~DrawArrayLengths() {}
GLint _first;
};
class DrawElements : public PrimitiveSet
{
public:
DrawElements(Type primType=PrimitiveType, GLenum mode=0, int numInstances=0):
PrimitiveSet(primType,mode, numInstances) {}
DrawElements(const DrawElements& copy,const CopyOp& copyop=CopyOp::SHALLOW_COPY):
PrimitiveSet(copy,copyop) {}
virtual DrawElements* getDrawElements() { return this; }
virtual const DrawElements* getDrawElements() const { return this; }
inline void setElementBufferObject(osg::ElementBufferObject* ebo) { setBufferObject(ebo); }
inline osg::ElementBufferObject* getElementBufferObject() { return dynamic_cast<osg::ElementBufferObject*>(_bufferObject.get()); }
inline const osg::ElementBufferObject* getElementBufferObject() const { return dynamic_cast<const osg::ElementBufferObject*>(_bufferObject.get()); }
virtual GLenum getDataType() = 0;
virtual void resizeElements(unsigned int numIndices) = 0;
virtual void reserveElements(unsigned int numIndices) = 0;
virtual void setElement(unsigned int, unsigned int) = 0;
virtual unsigned int getElement(unsigned int) = 0;
virtual void addElement(unsigned int) = 0;
protected:
virtual ~DrawElements() {}
};
class OSG_EXPORT DrawElementsUByte : public DrawElements, public VectorGLubyte
{
public:
typedef VectorGLubyte vector_type;
DrawElementsUByte(GLenum mode=0):
DrawElements(DrawElementsUBytePrimitiveType,mode) {}
DrawElementsUByte(const DrawElementsUByte& array, const CopyOp& copyop=CopyOp::SHALLOW_COPY):
DrawElements(array,copyop),
vector_type(array) {}
DrawElementsUByte(GLenum mode, unsigned int no, const GLubyte* ptr, int numInstances=0) :
DrawElements(DrawElementsUBytePrimitiveType,mode,numInstances),
vector_type(ptr,ptr+no) {}
DrawElementsUByte(GLenum mode, unsigned int no) :
DrawElements(DrawElementsUBytePrimitiveType,mode),
vector_type(no) {}
virtual Object* cloneType() const { return new DrawElementsUByte(); }
virtual Object* clone(const CopyOp& copyop) const { return new DrawElementsUByte(*this,copyop); }
virtual bool isSameKindAs(const Object* obj) const { return dynamic_cast<const DrawElementsUByte*>(obj)!=NULL; }
virtual const char* libraryName() const { return "osg"; }
virtual const char* className() const { return "DrawElementsUByte"; }
virtual const GLvoid* getDataPointer() const { return empty()?0:&front(); }
virtual unsigned int getTotalDataSize() const { return static_cast<unsigned int>(size()); }
virtual bool supportsBufferObject() const { return false; }
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 { return static_cast<unsigned int>(size()); }
virtual unsigned int index(unsigned int pos) const { return (*this)[pos]; }
virtual void offsetIndices(int offset);
virtual GLenum getDataType() { return GL_UNSIGNED_BYTE; }
virtual void resizeElements(unsigned int numIndices) { resize(numIndices); }
virtual void reserveElements(unsigned int numIndices) { reserve(numIndices); }
virtual void setElement(unsigned int i, unsigned int v) { (*this)[i] = v; }
virtual unsigned int getElement(unsigned int i) { return (*this)[i]; }
virtual void addElement(unsigned int v) { push_back(GLubyte(v)); }
protected:
virtual ~DrawElementsUByte();
};
class OSG_EXPORT DrawElementsUShort : public DrawElements, public VectorGLushort
{
public:
typedef VectorGLushort vector_type;
DrawElementsUShort(GLenum mode=0):
DrawElements(DrawElementsUShortPrimitiveType,mode) {}
DrawElementsUShort(const DrawElementsUShort& array,const CopyOp& copyop=CopyOp::SHALLOW_COPY):
DrawElements(array,copyop),
vector_type(array) {}
DrawElementsUShort(GLenum mode, unsigned int no, const GLushort* ptr, int numInstances=0) :
DrawElements(DrawElementsUShortPrimitiveType,mode,numInstances),
vector_type(ptr,ptr+no) {}
DrawElementsUShort(GLenum mode, unsigned int no) :
DrawElements(DrawElementsUShortPrimitiveType,mode),
vector_type(no) {}
template <class InputIterator>
DrawElementsUShort(GLenum mode, InputIterator first,InputIterator last) :
DrawElements(DrawElementsUShortPrimitiveType,mode),
vector_type(first,last) {}
virtual Object* cloneType() const { return new DrawElementsUShort(); }
virtual Object* clone(const CopyOp& copyop) const { return new DrawElementsUShort(*this,copyop); }
virtual bool isSameKindAs(const Object* obj) const { return dynamic_cast<const DrawElementsUShort*>(obj)!=NULL; }
virtual const char* libraryName() const { return "osg"; }
virtual const char* className() const { return "DrawElementsUShort"; }
virtual const GLvoid* getDataPointer() const { return empty()?0:&front(); }
virtual unsigned int getTotalDataSize() const { return 2u*static_cast<unsigned int>(size()); }
virtual bool supportsBufferObject() const { return false; }
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 { return static_cast<unsigned int>(size()); }
virtual unsigned int index(unsigned int pos) const { return (*this)[pos]; }
virtual void offsetIndices(int offset);
virtual GLenum getDataType() { return GL_UNSIGNED_SHORT; }
virtual void resizeElements(unsigned int numIndices) { resize(numIndices); }
virtual void reserveElements(unsigned int numIndices) { reserve(numIndices); }
virtual void setElement(unsigned int i, unsigned int v) { (*this)[i] = v; }
virtual unsigned int getElement(unsigned int i) { return (*this)[i]; }
virtual void addElement(unsigned int v) { push_back(GLushort(v)); }
protected:
virtual ~DrawElementsUShort();
};
class OSG_EXPORT DrawElementsUInt : public DrawElements, public VectorGLuint
{
public:
typedef VectorGLuint vector_type;
DrawElementsUInt(GLenum mode=0):
DrawElements(DrawElementsUIntPrimitiveType,mode) {}
DrawElementsUInt(const DrawElementsUInt& array,const CopyOp& copyop=CopyOp::SHALLOW_COPY):
DrawElements(array,copyop),
vector_type(array) {}
DrawElementsUInt(GLenum mode, unsigned int no, const GLuint* ptr, int numInstances=0) :
DrawElements(DrawElementsUIntPrimitiveType,mode,numInstances),
vector_type(ptr,ptr+no) {}
DrawElementsUInt(GLenum mode, unsigned int no) :
DrawElements(DrawElementsUIntPrimitiveType,mode),
vector_type(no) {}
template <class InputIterator>
DrawElementsUInt(GLenum mode, InputIterator first,InputIterator last) :
DrawElements(DrawElementsUIntPrimitiveType,mode),
vector_type(first,last) {}
virtual Object* cloneType() const { return new DrawElementsUInt(); }
virtual Object* clone(const CopyOp& copyop) const { return new DrawElementsUInt(*this,copyop); }
virtual bool isSameKindAs(const Object* obj) const { return dynamic_cast<const DrawElementsUInt*>(obj)!=NULL; }
virtual const char* libraryName() const { return "osg"; }
virtual const char* className() const { return "DrawElementsUInt"; }
virtual const GLvoid* getDataPointer() const { return empty()?0:&front(); }
virtual unsigned int getTotalDataSize() const { return 4u*static_cast<unsigned int>(size()); }
virtual bool supportsBufferObject() const { return false; }
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 { return static_cast<unsigned int>(size()); }
virtual unsigned int index(unsigned int pos) const { return (*this)[pos]; }
virtual void offsetIndices(int offset);
virtual GLenum getDataType() { return GL_UNSIGNED_INT; }
virtual void resizeElements(unsigned int numIndices) { resize(numIndices); }
virtual void reserveElements(unsigned int numIndices) { reserve(numIndices); }
virtual void setElement(unsigned int i, unsigned int v) { (*this)[i] = v; }
virtual unsigned int getElement(unsigned int i) { return (*this)[i]; }
virtual void addElement(unsigned int v) { push_back(GLuint(v)); }
protected:
virtual ~DrawElementsUInt();
};
#ifdef OSG_HAS_MULTIDRAWARRAYS
class OSG_EXPORT MultiDrawArrays : public osg::PrimitiveSet
{
public:
MultiDrawArrays(GLenum mode=0):
osg::PrimitiveSet(Type(MultiDrawArraysPrimitiveType), mode) {}
MultiDrawArrays(const MultiDrawArrays& dal,const CopyOp& copyop=CopyOp::SHALLOW_COPY):
osg::PrimitiveSet(dal,copyop),
_firsts(dal._firsts),
_counts(dal._counts) {}
virtual osg::Object* cloneType() const { return new MultiDrawArrays(); }
virtual osg::Object* clone(const osg::CopyOp& copyop) const { return new MultiDrawArrays(*this,copyop); }
virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast<const MultiDrawArrays*>(obj)!=NULL; }
virtual const char* libraryName() const { return "osg"; }
virtual const char* className() const { return "MultiDrawArrays"; }
virtual void draw(osg::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 unsigned int getNumPrimitives() const;
typedef std::vector<GLint> Firsts;
void setFirsts(const Firsts& firsts) { _firsts = firsts; }
Firsts& getFirsts() { return _firsts; }
const Firsts& getFirsts() const { return _firsts; }
typedef std::vector<GLsizei> Counts;
void setCounts(const Counts& firsts) { _counts = firsts; }
Counts& getCounts() { return _counts; }
const Counts& getCounts() const { return _counts; }
void add(GLint first, GLsizei count);
protected:
Firsts _firsts;
Counts _counts;
};
#endif
}
#endif
BufferObject
GL_LINES_ADJACENCY
#define GL_LINES_ADJACENCY
Definition GLDefines:208
GL_TRIANGLE_STRIP_ADJACENCY
#define GL_TRIANGLE_STRIP_ADJACENCY
Definition GLDefines:211
GL_TRIANGLES_ADJACENCY
#define GL_TRIANGLES_ADJACENCY
Definition GLDefines:210
GL_LINE_STRIP_ADJACENCY
#define GL_LINE_STRIP_ADJACENCY
Definition GLDefines:209
GL_PATCHES
#define GL_PATCHES
Definition GLDefines:221
MixinVector
Object
Vec2
Vec2d
Vec3
Vec3d
Vec4
Vec4d
buffered_value
osg::BufferData::BufferData
BufferData()
Definition BufferObject:498
osg::BufferData::_bufferObject
osg::ref_ptr< BufferObject > _bufferObject
Definition BufferObject:590
osg::BufferData::setBufferObject
void setBufferObject(BufferObject *bufferObject)
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::DrawArrayLengths::DrawArrayLengths
DrawArrayLengths(const DrawArrayLengths &dal, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
Definition PrimitiveSet:287
osg::DrawArrayLengths::getNumPrimitives
virtual unsigned int getNumPrimitives() const
osg::DrawArrayLengths::index
virtual unsigned int index(unsigned int pos) const
Definition PrimitiveSet:324
osg::DrawArrayLengths::offsetIndices
virtual void offsetIndices(int offset)
Definition PrimitiveSet:325
osg::DrawArrayLengths::DrawArrayLengths
DrawArrayLengths(GLenum mode, GLint first, unsigned int no)
Definition PrimitiveSet:297
osg::DrawArrayLengths::DrawArrayLengths
DrawArrayLengths(GLenum mode, GLint first)
Definition PrimitiveSet:302
osg::DrawArrayLengths::clone
virtual Object * clone(const CopyOp &copyop) const
Definition PrimitiveSet:309
osg::DrawArrayLengths::DrawArrayLengths
DrawArrayLengths(GLenum mode=0)
Definition PrimitiveSet:283
osg::DrawArrayLengths::accept
virtual void accept(PrimitiveIndexFunctor &functor) const
osg::DrawArrayLengths::isSameKindAs
virtual bool isSameKindAs(const Object *obj) const
Definition PrimitiveSet:310
osg::DrawArrayLengths::DrawArrayLengths
DrawArrayLengths(GLenum mode, GLint first, unsigned int no, GLsizei *ptr)
Definition PrimitiveSet:292
osg::DrawArrayLengths::className
virtual const char * className() const
Definition PrimitiveSet:312
osg::DrawArrayLengths::draw
virtual void draw(State &state, bool useVertexBufferObjects) const
osg::DrawArrayLengths::accept
virtual void accept(PrimitiveFunctor &functor) const
osg::DrawArrayLengths::getNumIndices
virtual unsigned int getNumIndices() const
osg::DrawArrayLengths::getFirst
GLint getFirst() const
Definition PrimitiveSet:316
osg::DrawArrayLengths::cloneType
virtual Object * cloneType() const
Definition PrimitiveSet:308
osg::DrawArrayLengths::libraryName
virtual const char * libraryName() const
Definition PrimitiveSet:311
osg::DrawArrayLengths::_first
GLint _first
Definition PrimitiveSet:333
osg::DrawArrayLengths::vector_type
VectorGLsizei vector_type
Definition PrimitiveSet:281
osg::DrawArrayLengths::setFirst
void setFirst(GLint first)
Definition PrimitiveSet:315
osg::DrawArrayLengths::~DrawArrayLengths
virtual ~DrawArrayLengths()
Definition PrimitiveSet:331
osg::DrawArrays::libraryName
virtual const char * libraryName() const
Definition PrimitiveSet:243
osg::DrawArrays::accept
virtual void accept(PrimitiveFunctor &functor) const
osg::DrawArrays::isSameKindAs
virtual bool isSameKindAs(const Object *obj) const
Definition PrimitiveSet:242
osg::DrawArrays::draw
virtual void draw(State &state, bool useVertexBufferObjects) const
osg::DrawArrays::~DrawArrays
virtual ~DrawArrays()
Definition PrimitiveSet:271
osg::DrawArrays::className
virtual const char * className() const
Definition PrimitiveSet:244
osg::DrawArrays::accept
virtual void accept(PrimitiveIndexFunctor &functor) const
osg::DrawArrays::setCount
void setCount(GLsizei count)
Definition PrimitiveSet:257
osg::DrawArrays::_first
GLint _first
Definition PrimitiveSet:273
osg::DrawArrays::index
virtual unsigned int index(unsigned int pos) const
Definition PrimitiveSet:266
osg::DrawArrays::setFirst
void setFirst(GLint first)
Definition PrimitiveSet:254
osg::DrawArrays::cloneType
virtual Object * cloneType() const
Definition PrimitiveSet:240
osg::DrawArrays::_count
GLsizei _count
Definition PrimitiveSet:274
osg::DrawArrays::offsetIndices
virtual void offsetIndices(int offset)
Definition PrimitiveSet:267
osg::DrawArrays::DrawArrays
DrawArrays(const DrawArrays &da, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
Definition PrimitiveSet:235
osg::DrawArrays::DrawArrays
DrawArrays(GLenum mode, GLint first, GLsizei count, int numInstances=0)
Definition PrimitiveSet:230
osg::DrawArrays::getCount
GLsizei getCount() const
Definition PrimitiveSet:258
osg::DrawArrays::getFirst
GLint getFirst() const
Definition PrimitiveSet:255
osg::DrawArrays::clone
virtual Object * clone(const CopyOp &copyop) const
Definition PrimitiveSet:241
osg::DrawArrays::getNumIndices
virtual unsigned int getNumIndices() const
Definition PrimitiveSet:265
osg::DrawArrays::set
void set(GLenum mode, GLint first, GLsizei count)
Definition PrimitiveSet:247
osg::DrawArrays::DrawArrays
DrawArrays(GLenum mode=0)
Definition PrimitiveSet:225
osg::DrawElementsUByte::isSameKindAs
virtual bool isSameKindAs(const Object *obj) const
Definition PrimitiveSet:404
osg::DrawElementsUByte::getElement
virtual unsigned int getElement(unsigned int i)
Definition PrimitiveSet:425
osg::DrawElementsUByte::accept
virtual void accept(PrimitiveIndexFunctor &functor) const
osg::DrawElementsUByte::className
virtual const char * className() const
Definition PrimitiveSet:406
osg::DrawElementsUByte::vector_type
VectorGLubyte vector_type
Definition PrimitiveSet:375
osg::DrawElementsUByte::setElement
virtual void setElement(unsigned int i, unsigned int v)
Definition PrimitiveSet:424
osg::DrawElementsUByte::getTotalDataSize
virtual unsigned int getTotalDataSize() const
Definition PrimitiveSet:409
osg::DrawElementsUByte::getDataType
virtual GLenum getDataType()
Definition PrimitiveSet:421
osg::DrawElementsUByte::cloneType
virtual Object * cloneType() const
Definition PrimitiveSet:402
osg::DrawElementsUByte::reserveElements
virtual void reserveElements(unsigned int numIndices)
Definition PrimitiveSet:423
osg::DrawElementsUByte::supportsBufferObject
virtual bool supportsBufferObject() const
Definition PrimitiveSet:410
osg::DrawElementsUByte::DrawElementsUByte
DrawElementsUByte(const DrawElementsUByte &array, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
Definition PrimitiveSet:380
osg::DrawElementsUByte::addElement
virtual void addElement(unsigned int v)
Definition PrimitiveSet:426
osg::DrawElementsUByte::resizeElements
virtual void resizeElements(unsigned int numIndices)
Definition PrimitiveSet:422
osg::DrawElementsUByte::index
virtual unsigned int index(unsigned int pos) const
Definition PrimitiveSet:418
osg::DrawElementsUByte::DrawElementsUByte
DrawElementsUByte(GLenum mode=0)
Definition PrimitiveSet:377
osg::DrawElementsUByte::draw
virtual void draw(State &state, bool useVertexBufferObjects) const
osg::DrawElementsUByte::getDataPointer
virtual const GLvoid * getDataPointer() const
Definition PrimitiveSet:408
osg::DrawElementsUByte::offsetIndices
virtual void offsetIndices(int offset)
osg::DrawElementsUByte::getNumIndices
virtual unsigned int getNumIndices() const
Definition PrimitiveSet:417
osg::DrawElementsUByte::libraryName
virtual const char * libraryName() const
Definition PrimitiveSet:405
osg::DrawElementsUByte::DrawElementsUByte
DrawElementsUByte(GLenum mode, unsigned int no)
Definition PrimitiveSet:398
osg::DrawElementsUByte::~DrawElementsUByte
virtual ~DrawElementsUByte()
osg::DrawElementsUByte::accept
virtual void accept(PrimitiveFunctor &functor) const
osg::DrawElementsUByte::clone
virtual Object * clone(const CopyOp &copyop) const
Definition PrimitiveSet:403
osg::DrawElementsUByte::DrawElementsUByte
DrawElementsUByte(GLenum mode, unsigned int no, const GLubyte *ptr, int numInstances=0)
Definition PrimitiveSet:390
osg::DrawElementsUInt::DrawElementsUInt
DrawElementsUInt(const DrawElementsUInt &array, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
Definition PrimitiveSet:510
osg::DrawElementsUInt::clone
virtual Object * clone(const CopyOp &copyop) const
Definition PrimitiveSet:538
osg::DrawElementsUInt::setElement
virtual void setElement(unsigned int i, unsigned int v)
Definition PrimitiveSet:559
osg::DrawElementsUInt::vector_type
VectorGLuint vector_type
Definition PrimitiveSet:505
osg::DrawElementsUInt::reserveElements
virtual void reserveElements(unsigned int numIndices)
Definition PrimitiveSet:558
osg::DrawElementsUInt::draw
virtual void draw(State &state, bool useVertexBufferObjects) const
osg::DrawElementsUInt::accept
virtual void accept(PrimitiveFunctor &functor) const
osg::DrawElementsUInt::offsetIndices
virtual void offsetIndices(int offset)
osg::DrawElementsUInt::getNumIndices
virtual unsigned int getNumIndices() const
Definition PrimitiveSet:552
osg::DrawElementsUInt::getTotalDataSize
virtual unsigned int getTotalDataSize() const
Definition PrimitiveSet:544
osg::DrawElementsUInt::supportsBufferObject
virtual bool supportsBufferObject() const
Definition PrimitiveSet:545
osg::DrawElementsUInt::resizeElements
virtual void resizeElements(unsigned int numIndices)
Definition PrimitiveSet:557
osg::DrawElementsUInt::getDataPointer
virtual const GLvoid * getDataPointer() const
Definition PrimitiveSet:543
osg::DrawElementsUInt::cloneType
virtual Object * cloneType() const
Definition PrimitiveSet:537
osg::DrawElementsUInt::DrawElementsUInt
DrawElementsUInt(GLenum mode, InputIterator first, InputIterator last)
Definition PrimitiveSet:533
osg::DrawElementsUInt::DrawElementsUInt
DrawElementsUInt(GLenum mode, unsigned int no)
Definition PrimitiveSet:528
osg::DrawElementsUInt::accept
virtual void accept(PrimitiveIndexFunctor &functor) const
osg::DrawElementsUInt::isSameKindAs
virtual bool isSameKindAs(const Object *obj) const
Definition PrimitiveSet:539
osg::DrawElementsUInt::DrawElementsUInt
DrawElementsUInt(GLenum mode=0)
Definition PrimitiveSet:507
osg::DrawElementsUInt::DrawElementsUInt
DrawElementsUInt(GLenum mode, unsigned int no, const GLuint *ptr, int numInstances=0)
Definition PrimitiveSet:520
osg::DrawElementsUInt::~DrawElementsUInt
virtual ~DrawElementsUInt()
osg::DrawElementsUInt::addElement
virtual void addElement(unsigned int v)
Definition PrimitiveSet:561
osg::DrawElementsUInt::className
virtual const char * className() const
Definition PrimitiveSet:541
osg::DrawElementsUInt::libraryName
virtual const char * libraryName() const
Definition PrimitiveSet:540
osg::DrawElementsUInt::index
virtual unsigned int index(unsigned int pos) const
Definition PrimitiveSet:553
osg::DrawElementsUInt::getDataType
virtual GLenum getDataType()
Definition PrimitiveSet:556
osg::DrawElementsUInt::getElement
virtual unsigned int getElement(unsigned int i)
Definition PrimitiveSet:560
osg::DrawElementsUShort::getDataType
virtual GLenum getDataType()
Definition PrimitiveSet:489
osg::DrawElementsUShort::reserveElements
virtual void reserveElements(unsigned int numIndices)
Definition PrimitiveSet:491
osg::DrawElementsUShort::getNumIndices
virtual unsigned int getNumIndices() const
Definition PrimitiveSet:485
osg::DrawElementsUShort::DrawElementsUShort
DrawElementsUShort(GLenum mode, InputIterator first, InputIterator last)
Definition PrimitiveSet:466
osg::DrawElementsUShort::setElement
virtual void setElement(unsigned int i, unsigned int v)
Definition PrimitiveSet:492
osg::DrawElementsUShort::vector_type
VectorGLushort vector_type
Definition PrimitiveSet:438
osg::DrawElementsUShort::resizeElements
virtual void resizeElements(unsigned int numIndices)
Definition PrimitiveSet:490
osg::DrawElementsUShort::accept
virtual void accept(PrimitiveFunctor &functor) const
osg::DrawElementsUShort::className
virtual const char * className() const
Definition PrimitiveSet:474
osg::DrawElementsUShort::offsetIndices
virtual void offsetIndices(int offset)
osg::DrawElementsUShort::getElement
virtual unsigned int getElement(unsigned int i)
Definition PrimitiveSet:493
osg::DrawElementsUShort::DrawElementsUShort
DrawElementsUShort(GLenum mode, unsigned int no)
Definition PrimitiveSet:461
osg::DrawElementsUShort::libraryName
virtual const char * libraryName() const
Definition PrimitiveSet:473
osg::DrawElementsUShort::supportsBufferObject
virtual bool supportsBufferObject() const
Definition PrimitiveSet:478
osg::DrawElementsUShort::DrawElementsUShort
DrawElementsUShort(GLenum mode=0)
Definition PrimitiveSet:440
osg::DrawElementsUShort::addElement
virtual void addElement(unsigned int v)
Definition PrimitiveSet:494
osg::DrawElementsUShort::getDataPointer
virtual const GLvoid * getDataPointer() const
Definition PrimitiveSet:476
osg::DrawElementsUShort::~DrawElementsUShort
virtual ~DrawElementsUShort()
osg::DrawElementsUShort::DrawElementsUShort
DrawElementsUShort(const DrawElementsUShort &array, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
Definition PrimitiveSet:443
osg::DrawElementsUShort::accept
virtual void accept(PrimitiveIndexFunctor &functor) const
osg::DrawElementsUShort::clone
virtual Object * clone(const CopyOp &copyop) const
Definition PrimitiveSet:471
osg::DrawElementsUShort::isSameKindAs
virtual bool isSameKindAs(const Object *obj) const
Definition PrimitiveSet:472
osg::DrawElementsUShort::cloneType
virtual Object * cloneType() const
Definition PrimitiveSet:470
osg::DrawElementsUShort::draw
virtual void draw(State &state, bool useVertexBufferObjects) const
osg::DrawElementsUShort::getTotalDataSize
virtual unsigned int getTotalDataSize() const
Definition PrimitiveSet:477
osg::DrawElementsUShort::index
virtual unsigned int index(unsigned int pos) const
Definition PrimitiveSet:486
osg::DrawElementsUShort::DrawElementsUShort
DrawElementsUShort(GLenum mode, unsigned int no, const GLushort *ptr, int numInstances=0)
Definition PrimitiveSet:453
osg::DrawElements
Definition PrimitiveSet:337
osg::DrawElements::DrawElements
DrawElements(const DrawElements &copy, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
Definition PrimitiveSet:343
osg::DrawElements::DrawElements
DrawElements(Type primType=PrimitiveType, GLenum mode=0, int numInstances=0)
Definition PrimitiveSet:340
osg::DrawElements::resizeElements
virtual void resizeElements(unsigned int numIndices)=0
osg::DrawElements::~DrawElements
virtual ~DrawElements()
Definition PrimitiveSet:368
osg::DrawElements::getDrawElements
virtual const DrawElements * getDrawElements() const
Definition PrimitiveSet:348
osg::DrawElements::setElementBufferObject
void setElementBufferObject(osg::ElementBufferObject *ebo)
Definition PrimitiveSet:351
osg::DrawElements::getDrawElements
virtual DrawElements * getDrawElements()
Definition PrimitiveSet:347
osg::DrawElements::setElement
virtual void setElement(unsigned int, unsigned int)=0
osg::DrawElements::getElementBufferObject
osg::ElementBufferObject * getElementBufferObject()
Definition PrimitiveSet:354
osg::DrawElements::getElementBufferObject
const osg::ElementBufferObject * getElementBufferObject() const
Definition PrimitiveSet:357
osg::DrawElements::getElement
virtual unsigned int getElement(unsigned int)=0
osg::DrawElements::addElement
virtual void addElement(unsigned int)=0
osg::DrawElements::reserveElements
virtual void reserveElements(unsigned int numIndices)=0
osg::DrawElements::getDataType
virtual GLenum getDataType()=0
osg::ElementBufferObject
Definition BufferObject:622
osg::MixinVector
Definition MixinVector:29
osg::MixinVector< GLubyte >::size
size_type size() const
Definition MixinVector:92
osg::MixinVector< GLubyte >::resize
void resize(size_type new_size, const value_type &fill_value=value_type())
Definition MixinVector:85
osg::MixinVector< GLubyte >::front
const_reference front() const
Definition MixinVector:138
osg::MixinVector< GLubyte >::reserve
void reserve(size_type new_capacity)
Definition MixinVector:86
osg::MixinVector< GLubyte >::push_back
void push_back(const value_type &value)
Definition MixinVector:117
osg::MixinVector< GLubyte >::empty
bool empty() const
Definition MixinVector:91
osg::MultiDrawArrays::libraryName
virtual const char * libraryName() const
Definition PrimitiveSet:584
osg::MultiDrawArrays::className
virtual const char * className() const
Definition PrimitiveSet:585
osg::MultiDrawArrays::Counts
std::vector< GLsizei > Counts
Definition PrimitiveSet:604
osg::MultiDrawArrays::setFirsts
void setFirsts(const Firsts &firsts)
Definition PrimitiveSet:600
osg::MultiDrawArrays::Firsts
std::vector< GLint > Firsts
Definition PrimitiveSet:599
osg::MultiDrawArrays::index
virtual unsigned int index(unsigned int pos) const
osg::MultiDrawArrays::MultiDrawArrays
MultiDrawArrays(const MultiDrawArrays &dal, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
Definition PrimitiveSet:576
osg::MultiDrawArrays::getFirsts
Firsts & getFirsts()
Definition PrimitiveSet:601
osg::MultiDrawArrays::accept
virtual void accept(PrimitiveIndexFunctor &functor) const
osg::MultiDrawArrays::clone
virtual osg::Object * clone(const osg::CopyOp &copyop) const
Definition PrimitiveSet:582
osg::MultiDrawArrays::MultiDrawArrays
MultiDrawArrays(GLenum mode=0)
Definition PrimitiveSet:573
osg::MultiDrawArrays::setCounts
void setCounts(const Counts &firsts)
Definition PrimitiveSet:605
osg::MultiDrawArrays::getNumIndices
virtual unsigned int getNumIndices() const
osg::MultiDrawArrays::accept
virtual void accept(PrimitiveFunctor &functor) const
osg::MultiDrawArrays::getFirsts
const Firsts & getFirsts() const
Definition PrimitiveSet:602
osg::MultiDrawArrays::_counts
Counts _counts
Definition PrimitiveSet:614
osg::MultiDrawArrays::getCounts
const Counts & getCounts() const
Definition PrimitiveSet:607
osg::MultiDrawArrays::getCounts
Counts & getCounts()
Definition PrimitiveSet:606
osg::MultiDrawArrays::draw
virtual void draw(osg::State &state, bool useVertexBufferObjects) const
osg::MultiDrawArrays::cloneType
virtual osg::Object * cloneType() const
Definition PrimitiveSet:581
osg::MultiDrawArrays::_firsts
Firsts _firsts
Definition PrimitiveSet:613
osg::MultiDrawArrays::isSameKindAs
virtual bool isSameKindAs(const osg::Object *obj) const
Definition PrimitiveSet:583
osg::MultiDrawArrays::offsetIndices
virtual void offsetIndices(int offset)
osg::MultiDrawArrays::add
void add(GLint first, GLsizei count)
osg::MultiDrawArrays::getNumPrimitives
virtual unsigned int getNumPrimitives() const
osg::Object
Definition Object:61
osg::PrimitiveFunctor
Definition PrimitiveSet:54
osg::PrimitiveFunctor::setVertexArray
virtual void setVertexArray(unsigned int count, const Vec3d *vertices)=0
osg::PrimitiveFunctor::drawArrays
virtual void drawArrays(GLenum mode, GLint first, GLsizei count)=0
Mimics the OpenGL glDrawArrays() function.
osg::PrimitiveFunctor::drawElements
virtual void drawElements(GLenum mode, GLsizei count, const GLuint *indices)=0
Mimics the OpenGL glDrawElements() function.
osg::PrimitiveFunctor::drawElements
virtual void drawElements(GLenum mode, GLsizei count, const GLubyte *indices)=0
Mimics the OpenGL glDrawElements() function.
osg::PrimitiveFunctor::setVertexArray
virtual void setVertexArray(unsigned int count, const Vec2d *vertices)=0
osg::PrimitiveFunctor::drawElements
virtual void drawElements(GLenum mode, GLsizei count, const GLushort *indices)=0
Mimics the OpenGL glDrawElements() function.
osg::PrimitiveFunctor::~PrimitiveFunctor
virtual ~PrimitiveFunctor()
Definition PrimitiveSet:57
osg::PrimitiveFunctor::setVertexArray
virtual void setVertexArray(unsigned int count, const Vec2 *vertices)=0
osg::PrimitiveFunctor::setVertexArray
virtual void setVertexArray(unsigned int count, const Vec3 *vertices)=0
osg::PrimitiveFunctor::setVertexArray
virtual void setVertexArray(unsigned int count, const Vec4 *vertices)=0
osg::PrimitiveFunctor::setVertexArray
virtual void setVertexArray(unsigned int count, const Vec4d *vertices)=0
osg::PrimitiveIndexFunctor
Definition PrimitiveSet:103
osg::PrimitiveIndexFunctor::setVertexArray
virtual void setVertexArray(unsigned int count, const Vec4d *vertices)=0
osg::PrimitiveIndexFunctor::setVertexArray
virtual void setVertexArray(unsigned int count, const Vec3d *vertices)=0
osg::PrimitiveIndexFunctor::~PrimitiveIndexFunctor
virtual ~PrimitiveIndexFunctor()
Definition PrimitiveSet:106
osg::PrimitiveIndexFunctor::setVertexArray
virtual void setVertexArray(unsigned int count, const Vec3 *vertices)=0
osg::PrimitiveIndexFunctor::drawArrays
virtual void drawArrays(GLenum mode, GLint first, GLsizei count)=0
osg::PrimitiveIndexFunctor::drawElements
virtual void drawElements(GLenum mode, GLsizei count, const GLushort *indices)=0
osg::PrimitiveIndexFunctor::drawElements
virtual void drawElements(GLenum mode, GLsizei count, const GLubyte *indices)=0
osg::PrimitiveIndexFunctor::drawElements
virtual void drawElements(GLenum mode, GLsizei count, const GLuint *indices)=0
osg::PrimitiveIndexFunctor::setVertexArray
virtual void setVertexArray(unsigned int count, const Vec2d *vertices)=0
osg::PrimitiveIndexFunctor::setVertexArray
virtual void setVertexArray(unsigned int count, const Vec4 *vertices)=0
osg::PrimitiveIndexFunctor::setVertexArray
virtual void setVertexArray(unsigned int count, const Vec2 *vertices)=0
osg::PrimitiveSet
Definition PrimitiveSet:125
osg::PrimitiveSet::getDataPointer
virtual const GLvoid * getDataPointer() const
Definition PrimitiveSet:186
osg::PrimitiveSet::getNumInstances
int getNumInstances() const
Definition PrimitiveSet:194
osg::PrimitiveSet::isSameKindAs
virtual bool isSameKindAs(const Object *obj) const
Definition PrimitiveSet:177
osg::PrimitiveSet::asPrimitiveSet
virtual osg::PrimitiveSet * asPrimitiveSet()
Definition PrimitiveSet:183
osg::PrimitiveSet::getNumIndices
virtual unsigned int getNumIndices() const =0
osg::PrimitiveSet::~PrimitiveSet
virtual ~PrimitiveSet()
Definition PrimitiveSet:214
osg::PrimitiveSet::getDrawElements
virtual DrawElements * getDrawElements()
Definition PrimitiveSet:190
osg::PrimitiveSet::_numInstances
int _numInstances
Definition PrimitiveSet:217
osg::PrimitiveSet::asPrimitiveSet
virtual const osg::PrimitiveSet * asPrimitiveSet() const
Definition PrimitiveSet:184
osg::PrimitiveSet::_primitiveType
Type _primitiveType
Definition PrimitiveSet:216
osg::PrimitiveSet::getTotalDataSize
virtual unsigned int getTotalDataSize() const
Definition PrimitiveSet:187
osg::PrimitiveSet::getType
Type getType() const
Definition PrimitiveSet:181
osg::PrimitiveSet::index
virtual unsigned int index(unsigned int pos) const =0
osg::PrimitiveSet::setMode
void setMode(GLenum mode)
Definition PrimitiveSet:196
osg::PrimitiveSet::Mode
Mode
Definition PrimitiveSet:148
osg::PrimitiveSet::QUADS
@ QUADS
Definition PrimitiveSet:156
osg::PrimitiveSet::TRIANGLE_STRIP
@ TRIANGLE_STRIP
Definition PrimitiveSet:154
osg::PrimitiveSet::PATCHES
@ PATCHES
Definition PrimitiveSet:163
osg::PrimitiveSet::TRIANGLE_FAN
@ TRIANGLE_FAN
Definition PrimitiveSet:155
osg::PrimitiveSet::QUAD_STRIP
@ QUAD_STRIP
Definition PrimitiveSet:157
osg::PrimitiveSet::TRIANGLES_ADJACENCY
@ TRIANGLES_ADJACENCY
Definition PrimitiveSet:161
osg::PrimitiveSet::LINE_STRIP_ADJACENCY
@ LINE_STRIP_ADJACENCY
Definition PrimitiveSet:160
osg::PrimitiveSet::TRIANGLE_STRIP_ADJACENCY
@ TRIANGLE_STRIP_ADJACENCY
Definition PrimitiveSet:162
osg::PrimitiveSet::LINE_STRIP
@ LINE_STRIP
Definition PrimitiveSet:151
osg::PrimitiveSet::LINES
@ LINES
Definition PrimitiveSet:150
osg::PrimitiveSet::POINTS
@ POINTS
Definition PrimitiveSet:149
osg::PrimitiveSet::LINE_LOOP
@ LINE_LOOP
Definition PrimitiveSet:152
osg::PrimitiveSet::TRIANGLES
@ TRIANGLES
Definition PrimitiveSet:153
osg::PrimitiveSet::LINES_ADJACENCY
@ LINES_ADJACENCY
Definition PrimitiveSet:159
osg::PrimitiveSet::POLYGON
@ POLYGON
Definition PrimitiveSet:158
osg::PrimitiveSet::_mode
GLenum _mode
Definition PrimitiveSet:218
osg::PrimitiveSet::computeRange
virtual void computeRange() const
Definition PrimitiveSet:210
osg::PrimitiveSet::offsetIndices
virtual void offsetIndices(int offset)=0
osg::PrimitiveSet::Type
Type
Definition PrimitiveSet:129
osg::PrimitiveSet::DrawElementsUByteIndirectPrimitiveType
@ DrawElementsUByteIndirectPrimitiveType
Definition PrimitiveSet:138
osg::PrimitiveSet::DrawArrayLengthsPrimitiveType
@ DrawArrayLengthsPrimitiveType
Definition PrimitiveSet:132
osg::PrimitiveSet::MultiDrawElementsUByteIndirectPrimitiveType
@ MultiDrawElementsUByteIndirectPrimitiveType
Definition PrimitiveSet:142
osg::PrimitiveSet::MultiDrawArraysPrimitiveType
@ MultiDrawArraysPrimitiveType
Definition PrimitiveSet:136
osg::PrimitiveSet::DrawElementsUIntPrimitiveType
@ DrawElementsUIntPrimitiveType
Definition PrimitiveSet:135
osg::PrimitiveSet::DrawElementsUShortPrimitiveType
@ DrawElementsUShortPrimitiveType
Definition PrimitiveSet:134
osg::PrimitiveSet::DrawArraysPrimitiveType
@ DrawArraysPrimitiveType
Definition PrimitiveSet:131
osg::PrimitiveSet::PrimitiveType
@ PrimitiveType
Definition PrimitiveSet:130
osg::PrimitiveSet::DrawArraysIndirectPrimitiveType
@ DrawArraysIndirectPrimitiveType
Definition PrimitiveSet:137
osg::PrimitiveSet::MultiDrawElementsUIntIndirectPrimitiveType
@ MultiDrawElementsUIntIndirectPrimitiveType
Definition PrimitiveSet:144
osg::PrimitiveSet::DrawElementsUBytePrimitiveType
@ DrawElementsUBytePrimitiveType
Definition PrimitiveSet:133
osg::PrimitiveSet::DrawElementsUIntIndirectPrimitiveType
@ DrawElementsUIntIndirectPrimitiveType
Definition PrimitiveSet:140
osg::PrimitiveSet::DrawElementsUShortIndirectPrimitiveType
@ DrawElementsUShortIndirectPrimitiveType
Definition PrimitiveSet:139
osg::PrimitiveSet::MultiDrawElementsUShortIndirectPrimitiveType
@ MultiDrawElementsUShortIndirectPrimitiveType
Definition PrimitiveSet:143
osg::PrimitiveSet::MultiDrawArraysIndirectPrimitiveType
@ MultiDrawArraysIndirectPrimitiveType
Definition PrimitiveSet:141
osg::PrimitiveSet::getNumPrimitives
virtual unsigned int getNumPrimitives() const
osg::PrimitiveSet::getDrawElements
virtual const DrawElements * getDrawElements() const
Definition PrimitiveSet:191
osg::PrimitiveSet::setNumInstances
void setNumInstances(int n)
Definition PrimitiveSet:193
osg::PrimitiveSet::supportsBufferObject
virtual bool supportsBufferObject() const
Definition PrimitiveSet:188
osg::PrimitiveSet::PrimitiveSet
PrimitiveSet(Type primType=PrimitiveType, GLenum mode=0, int numInstances=0)
Definition PrimitiveSet:166
osg::PrimitiveSet::accept
virtual void accept(PrimitiveIndexFunctor &functor) const =0
osg::PrimitiveSet::libraryName
virtual const char * libraryName() const
Definition PrimitiveSet:178
osg::PrimitiveSet::draw
virtual void draw(State &state, bool useVertexBufferObjects) const =0
osg::PrimitiveSet::className
virtual const char * className() const
Definition PrimitiveSet:179
osg::PrimitiveSet::getMode
GLenum getMode() const
Definition PrimitiveSet:197
osg::PrimitiveSet::PrimitiveSet
PrimitiveSet(const PrimitiveSet &prim, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
Definition PrimitiveSet:171
osg::PrimitiveSet::accept
virtual void accept(PrimitiveFunctor &functor) const =0
osg::State
Definition State:80
osg::Vec2d
Definition Vec2d:29
osg::Vec3d
Definition Vec3d:30
osg::Vec4d
Definition Vec4d:29
osg
Definition AlphaFunc:19
osg::Vec2
Vec2f Vec2
Definition Vec2:21
osg::Vec3
Vec3f Vec3
Definition Vec3:21
osg::VectorGLsizei
MixinVector< GLsizei > VectorGLsizei
Definition PrimitiveSet:36
osg::VectorGLuint
MixinVector< GLuint > VectorGLuint
Definition PrimitiveSet:39
osg::VectorGLushort
MixinVector< GLushort > VectorGLushort
Definition PrimitiveSet:38
osg::Vec4
Vec4f Vec4
Definition Vec4:21
osg::VectorGLubyte
MixinVector< GLubyte > VectorGLubyte
Definition PrimitiveSet:37
NULL
#define NULL
Definition osg/Export:55
OSG_EXPORT
#define OSG_EXPORT
Definition osg/Export:39