OpenSceneGraph  3.5.1
Classes | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
osg::GLBufferObject Class Reference
Inheritance diagram for osg::GLBufferObject:
Inheritance graph
[legend]

Classes

struct  BufferEntry
 

Public Member Functions

 GLBufferObject (unsigned int contextID, BufferObject *bufferObject, unsigned int glObjectID=0)
 
void setProfile (const BufferObjectProfile &profile)
 
const BufferObjectProfilegetProfile () const
 
void setBufferObject (BufferObject *bufferObject)
 
BufferObjectgetBufferObject ()
 
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)
 
- Public Member Functions inherited from osg::GraphicsObject
 GraphicsObject ()
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 Set whether to use a mutex to ensure ref() and unref() are thread safe. 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...
 
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL. More...
 
ObserverSetgetOrCreateObserverSet () 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
 

Protected Types

typedef std::vector< BufferEntryBufferEntries
 

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 setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 Set whether reference counting should use a mutex for thread safe reference counting. More...
 
static bool getThreadSafeReferenceCounting ()
 Get whether reference counting is active. More...
 
static void setDeleteHandler (DeleteHandler *handler)
 Set a DeleteHandler to which deletion of all referenced counted objects will be delegated. More...
 
static DeleteHandlergetDeleteHandler ()
 Get a DeleteHandler. More...
 

Member Typedef Documentation

typedef std::vector<BufferEntry> osg::GLBufferObject::BufferEntries
protected

Constructor & Destructor Documentation

osg::GLBufferObject::GLBufferObject ( unsigned int  contextID,
BufferObject bufferObject,
unsigned int  glObjectID = 0 
)
virtual osg::GLBufferObject::~GLBufferObject ( )
protectedvirtual

Member Function Documentation

void osg::GLBufferObject::assign ( BufferObject bufferObject)
void osg::GLBufferObject::bindBuffer ( )
inline
void osg::GLBufferObject::clear ( )
void osg::GLBufferObject::compileBuffer ( )
unsigned int osg::GLBufferObject::computeBufferAlignment ( unsigned int  pos,
unsigned int  bufferAlignment 
) const
inlineprotected
void osg::GLBufferObject::deleteGLObject ( )
void osg::GLBufferObject::dirty ( )
inline
BufferObject* osg::GLBufferObject::getBufferObject ( )
inline
unsigned int osg::GLBufferObject::getContextID ( ) const
inline
GLuint& osg::GLBufferObject::getGLObjectID ( )
inline
GLuint osg::GLBufferObject::getGLObjectID ( ) const
inline
GLsizeiptr osg::GLBufferObject::getOffset ( unsigned int  i) const
inline
const BufferObjectProfile& osg::GLBufferObject::getProfile ( ) const
inline
bool osg::GLBufferObject::hasAllBufferDataBeenRead ( ) const
bool osg::GLBufferObject::isDirty ( ) const
inline
bool osg::GLBufferObject::isPBOSupported ( ) const
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)
void osg::GLBufferObject::setProfile ( const BufferObjectProfile profile)
inline
void osg::GLBufferObject::unbindBuffer ( )
inline

Member Data Documentation

unsigned int osg::GLBufferObject::_allocatedSize
protected
BufferEntries osg::GLBufferObject::_bufferEntries
protected
BufferObject* osg::GLBufferObject::_bufferObject
protected
unsigned int osg::GLBufferObject::_contextID
protected
bool osg::GLBufferObject::_dirty
protected
GLExtensions* osg::GLBufferObject::_extensions
unsigned int osg::GLBufferObject::_frameLastUsed
GLuint osg::GLBufferObject::_glObjectID
protected
GLBufferObject* osg::GLBufferObject::_next
GLBufferObject* osg::GLBufferObject::_previous
BufferObjectProfile osg::GLBufferObject::_profile
protected
GLBufferObjectSet* osg::GLBufferObject::_set

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

osg logo
Generated at Wed Nov 11 2015 22:14:34 for the OpenSceneGraph by doxygen 1.8.10.