Public Member Functions | |
BufferData () | |
BufferData (const BufferData &bd, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
virtual bool | isSameKindAs (const Object *obj) const |
virtual const char * | libraryName () const |
virtual const char * | className () const |
virtual const GLvoid * | getDataPointer () const =0 |
virtual unsigned int | getTotalDataSize () const =0 |
void | setBufferObject (BufferObject *bufferObject) |
BufferObject * | getBufferObject () |
const BufferObject * | getBufferObject () const |
void | setBufferIndex (unsigned int index) |
unsigned int | getBufferIndex () const |
GLBufferObject * | getGLBufferObject (unsigned int contextID) const |
GLBufferObject * | getOrCreateGLBufferObject (unsigned int contextID) const |
void | dirty () |
void | setModifiedCount (unsigned int value) |
unsigned int | getModifiedCount () const |
Protected Member Functions | |
virtual | ~BufferData () |
Protected Attributes | |
unsigned int | _modifiedCount |
unsigned int | _bufferIndex |
osg::ref_ptr< BufferObject > | _bufferObject |
osg::BufferData::BufferData | ( | ) | [inline] |
osg::BufferData::BufferData | ( | const BufferData & | bd, | |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY | |||
) | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::BufferData::~BufferData | ( | ) | [protected, virtual] |
virtual bool osg::BufferData::isSameKindAs | ( | const Object * | obj | ) | const [inline, virtual] |
Reimplemented from osg::Object.
Reimplemented in osg::Array, osg::IndexArray, osg::Image, osg::ImageSequence, osg::ImageStream, osg::PrimitiveSet, osg::DrawArrays, osg::DrawArrayLengths, osg::DrawElementsUByte, osg::DrawElementsUShort, and osg::DrawElementsUInt.
References NULL.
virtual const char* osg::BufferData::libraryName | ( | ) | const [inline, virtual] |
return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name.
Implements osg::Object.
Reimplemented in osg::Array, osg::Image, osg::ImageSequence, osg::ImageStream, osg::PrimitiveSet, osg::DrawArrays, osg::DrawArrayLengths, osg::DrawElementsUByte, osg::DrawElementsUShort, and osg::DrawElementsUInt.
virtual const char* osg::BufferData::className | ( | ) | const [inline, virtual] |
return the name of the object's class type. Must be defined by derived classes.
Implements osg::Object.
Reimplemented in osg::Array, osg::Image, osg::ImageSequence, osg::ImageStream, osg::PrimitiveSet, osg::DrawArrays, osg::DrawArrayLengths, osg::DrawElementsUByte, osg::DrawElementsUShort, and osg::DrawElementsUInt.
virtual const GLvoid* osg::BufferData::getDataPointer | ( | ) | const [pure virtual] |
virtual unsigned int osg::BufferData::getTotalDataSize | ( | ) | const [pure virtual] |
void osg::BufferData::setBufferObject | ( | BufferObject * | bufferObject | ) |
Referenced by osg::DrawElements::setElementBufferObject().
BufferObject* osg::BufferData::getBufferObject | ( | ) | [inline] |
const BufferObject* osg::BufferData::getBufferObject | ( | ) | const [inline] |
void osg::BufferData::setBufferIndex | ( | unsigned int | index | ) | [inline] |
unsigned int osg::BufferData::getBufferIndex | ( | ) | const [inline] |
GLBufferObject* osg::BufferData::getGLBufferObject | ( | unsigned int | contextID | ) | const [inline] |
GLBufferObject* osg::BufferData::getOrCreateGLBufferObject | ( | unsigned int | contextID | ) | const [inline] |
void osg::BufferData::dirty | ( | ) | [inline] |
Dirty the primitive, which increments the modified count, to force buffer objects to update.
void osg::BufferData::setModifiedCount | ( | unsigned int | value | ) | [inline] |
Set the modified count value.
unsigned int osg::BufferData::getModifiedCount | ( | ) | const [inline] |
Get modified count value.
unsigned int osg::BufferData::_modifiedCount [protected] |
unsigned int osg::BufferData::_bufferIndex [protected] |
osg::ref_ptr<BufferObject> osg::BufferData::_bufferObject [protected] |