OpenSceneGraph
3.4.0
|
Template buffer class to be used with a struct as template parameter. More...
Public Member Functions | |
BufferTemplate () | |
BufferTemplate (const BufferTemplate< T > &bt, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
virtual bool | isSameKindAs (const Object *obj) const |
virtual const char * | libraryName () const |
return the name of the object's library. | |
virtual const char * | className () const |
return the name of the object's class type. | |
virtual Object * | cloneType () const |
Clone the type of an object, with Object* return type. | |
virtual Object * | clone (const CopyOp ©op) const |
Clone an object, with Object* return type. | |
virtual const GLvoid * | getDataPointer () const |
virtual unsigned int | getTotalDataSize () const |
const T & | getData () const |
T & | getData () |
void | setData (const T &data) |
Protected Member Functions | |
virtual | ~BufferTemplate () |
Template buffer class to be used with a struct as template parameter.
This class is useful to send C++ structures on the GPU (e.g. for uniform blocks) but be careful to the alignments rules on the GPU side !
osg::BufferTemplate< T >::BufferTemplate | ( | ) | [inline] |
osg::BufferTemplate< T >::BufferTemplate | ( | const BufferTemplate< T > & | bt, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::BufferTemplate< T >::~BufferTemplate | ( | ) | [inline, protected, virtual] |
virtual const char* osg::BufferTemplate< T >::className | ( | ) | const [inline, virtual] |
return the name of the object's class type.
Must be defined by derived classes.
Reimplemented from osg::BufferData.
virtual Object* osg::BufferTemplate< T >::clone | ( | const CopyOp & | ) | const [inline, virtual] |
Clone an object, with Object* return type.
Must be defined by derived classes.
Implements osg::Object.
virtual Object* osg::BufferTemplate< T >::cloneType | ( | ) | const [inline, virtual] |
Clone the type of an object, with Object* return type.
Must be defined by derived classes.
Implements osg::Object.
const T& osg::BufferTemplate< T >::getData | ( | ) | const [inline] |
T& osg::BufferTemplate< T >::getData | ( | ) | [inline] |
virtual const GLvoid* osg::BufferTemplate< T >::getDataPointer | ( | ) | const [inline, virtual] |
Implements osg::BufferData.
virtual unsigned int osg::BufferTemplate< T >::getTotalDataSize | ( | ) | const [inline, virtual] |
Implements osg::BufferData.
virtual bool osg::BufferTemplate< T >::isSameKindAs | ( | const Object * | obj | ) | const [inline, virtual] |
Reimplemented from osg::BufferData.
References NULL.
virtual const char* osg::BufferTemplate< T >::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.
Reimplemented from osg::BufferData.
void osg::BufferTemplate< T >::setData | ( | const T & | data | ) | [inline] |
References osg::BufferData::dirty().
![]() | Generated at Tue Dec 8 2015 00:16:41 for the OpenSceneGraph by doxygen 1.7.6.1. |