OpenSceneGraph
|
Classes | |
struct | BufferEntry |
Public Member Functions | |
GLBufferObject (unsigned int contextID, BufferObject *bufferObject, unsigned int glObjectID=0) | |
void | setProfile (const BufferObjectProfile &profile) |
const BufferObjectProfile & | getProfile () const |
void | setBufferObject (BufferObject *bufferObject) |
BufferObject * | getBufferObject () |
unsigned int | getContextID () const |
GLuint & | getGLObjectID () |
GLuint | getGLObjectID () const |
GLsizeiptr | getOffset (unsigned int i) const |
void | bindBuffer () |
void | unbindBuffer () |
void | release () |
release GLBufferObject to the orphan list to be reused or deleted. More... | |
bool | isDirty () const |
void | dirty () |
void | clear () |
void | compileBuffer () |
void | deleteGLObject () |
void | assign (BufferObject *bufferObject) |
bool | isPBOSupported () const |
bool | hasAllBufferDataBeenRead () const |
void | setBufferDataHasBeenRead (const osg::BufferData *bd) |
void | downloadBuffer (unsigned int entryidx) |
void | commitDMA (unsigned int entryidx) |
Public Member Functions inherited from osg::GraphicsObject | |
GraphicsObject () | |
Public Member Functions inherited from osg::Referenced | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Deprecated, Referenced is now always uses thread safe ref/unref, use default Referenced() constructor instead. More... | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
virtual void | setThreadSafeRefUnref (bool) |
Deprecated, Referenced is always theadsafe so there method now has no effect and does not need to be called. More... | |
bool | getThreadSafeRefUnref () const |
Get whether a mutex is used to ensure ref() and unref() are thread safe. More... | |
OpenThreads::Mutex * | getRefMutex () const |
Get the mutex used to ensure thread safety of ref()/unref(). More... | |
int | ref () const |
Increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
int | unref () const |
Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More... | |
int | unref_nodelete () const |
Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More... | |
int | referenceCount () const |
Return the number of pointers currently referencing this object. More... | |
ObserverSet * | getObserverSet () const |
Get the ObserverSet if one is attached, otherwise return NULL. More... | |
ObserverSet * | getOrCreateObserverSet () const |
Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet. More... | |
void | addObserver (Observer *observer) const |
Add a Observer that is observing this object, notify the Observer when this object gets deleted. More... | |
void | removeObserver (Observer *observer) const |
Remove Observer that is observing this object. More... | |
Public Attributes | |
GLBufferObjectSet * | _set |
GLBufferObject * | _previous |
GLBufferObject * | _next |
unsigned int | _frameLastUsed |
GLExtensions * | _extensions |
GLvoid * | _persistentDMA |
Protected Types | |
typedef std::vector< BufferEntry > | BufferEntries |
Protected Member Functions | |
virtual | ~GLBufferObject () |
unsigned int | computeBufferAlignment (unsigned int pos, unsigned int bufferAlignment) const |
Protected Member Functions inherited from osg::GraphicsObject | |
virtual | ~GraphicsObject () |
Protected Member Functions inherited from osg::Referenced | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Protected Attributes | |
unsigned int | _contextID |
GLuint | _glObjectID |
BufferObjectProfile | _profile |
unsigned int | _allocatedSize |
bool | _dirty |
BufferEntries | _bufferEntries |
BufferObject * | _bufferObject |
Protected Attributes inherited from osg::Referenced | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
Static Public Member Functions inherited from osg::Referenced | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
Get the optional global Referenced mutex, this can be shared between all osg::Referenced. More... | |
static void | setDeleteHandler (DeleteHandler *handler) |
Set a DeleteHandler to which deletion of all referenced counted objects will be delegated. More... | |
static DeleteHandler * | getDeleteHandler () |
Get a DeleteHandler. More... | |
|
protected |
osg::GLBufferObject::GLBufferObject | ( | unsigned int | contextID, |
BufferObject * | bufferObject, | ||
unsigned int | glObjectID = 0 |
||
) |
|
protectedvirtual |
void osg::GLBufferObject::assign | ( | BufferObject * | bufferObject | ) |
|
inline |
void osg::GLBufferObject::clear | ( | ) |
void osg::GLBufferObject::commitDMA | ( | unsigned int | entryidx | ) |
void osg::GLBufferObject::compileBuffer | ( | ) |
|
inlineprotected |
References osg::computeBufferAlignment().
void osg::GLBufferObject::deleteGLObject | ( | ) |
|
inline |
void osg::GLBufferObject::downloadBuffer | ( | unsigned int | entryidx | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool osg::GLBufferObject::hasAllBufferDataBeenRead | ( | ) | const |
|
inline |
|
inline |
void osg::GLBufferObject::release | ( | ) |
release GLBufferObject to the orphan list to be reused or deleted.
void osg::GLBufferObject::setBufferDataHasBeenRead | ( | const osg::BufferData * | bd | ) |
void osg::GLBufferObject::setBufferObject | ( | BufferObject * | bufferObject | ) |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
GLExtensions* osg::GLBufferObject::_extensions |
unsigned int osg::GLBufferObject::_frameLastUsed |
|
protected |
GLBufferObject* osg::GLBufferObject::_next |
GLvoid* osg::GLBufferObject::_persistentDMA |
GLBufferObject* osg::GLBufferObject::_previous |
|
protected |
GLBufferObjectSet* osg::GLBufferObject::_set |