osg::BufferData Class Reference

Inheritance diagram for osg::BufferData:

osg::Object osg::Referenced osg::Array osg::Image osg::PrimitiveSet osg::IndexArray osg::TemplateArray< T, ARRAYTYPE, DataSize, DataType > osg::ImageStream osgText::Font::Glyph osgWidget::BrowserImage osgWidget::PdfImage osgWidget::VncImage osg::DrawArrayLengths osg::DrawArrays osg::DrawElements

List of all members.

Public Member Functions

 BufferData ()
 BufferData (const BufferData &bd, const CopyOp &copyop=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)
BufferObjectgetBufferObject ()
const BufferObjectgetBufferObject () const
void setBufferIndex (unsigned int index)
unsigned int getBufferIndex () const
GLBufferObjectgetGLBufferObject (unsigned int contextID) const
GLBufferObjectgetOrCreateGLBufferObject (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


Constructor & Destructor Documentation

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]


Member Function Documentation

virtual bool osg::BufferData::isSameKindAs ( const Object obj  )  const [inline, virtual]

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  ) 

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.


Member Data Documentation

unsigned int osg::BufferData::_modifiedCount [protected]

unsigned int osg::BufferData::_bufferIndex [protected]

Reimplemented in osg::Image.

Referenced by osg::DrawElements::getElementBufferObject().


The documentation for this class was generated from the following file:

Generated on Fri Mar 19 19:52:50 2010 for openscenegraph by  doxygen 1.5.6