#include <GLObjects>
◆ GLObjectHandleList
◆ GLObjectManager()
osg::GLObjectManager::GLObjectManager |
( |
const std::string & |
name, |
|
|
unsigned int |
contextID |
|
) |
| |
◆ ~GLObjectManager()
virtual osg::GLObjectManager::~GLObjectManager |
( |
| ) |
|
|
protectedvirtual |
◆ createGLObject()
virtual GLuint osg::GLObjectManager::createGLObject |
( |
| ) |
|
|
virtual |
implementation of the actual creation of an GL object - subclasses from GLObjectManager must implement the appropriate GL calls.
◆ deleteAllGLObjects()
virtual void osg::GLObjectManager::deleteAllGLObjects |
( |
| ) |
|
|
virtual |
Do a GL delete all OpenGL objects. Note, must be called from a thread which has current the graphics context associated with contextID.
Implements osg::GraphicsObjectManager.
◆ deleteGLObject()
virtual void osg::GLObjectManager::deleteGLObject |
( |
GLuint |
globj | ) |
|
|
pure virtual |
◆ discardAllGLObjects()
virtual void osg::GLObjectManager::discardAllGLObjects |
( |
| ) |
|
|
virtual |
Discard all OpenGL objects. Note, unlike deleteAllGLjects discard does not do any OpenGL calls so can be called from any thread, but as a consequence it also doesn't remove the associated OpenGL resource so discard should only be called when the associated graphics context is being/has been closed.
Implements osg::GraphicsObjectManager.
◆ flushAllDeletedGLObjects()
virtual void osg::GLObjectManager::flushAllDeletedGLObjects |
( |
| ) |
|
|
virtual |
Flush all deleted OpenGL objects. Note, must be called from a thread which has current the graphics context associated with contextID.
Implements osg::GraphicsObjectManager.
◆ flushDeletedGLObjects()
virtual void osg::GLObjectManager::flushDeletedGLObjects |
( |
double |
currentTime, |
|
|
double & |
availableTime |
|
) |
| |
|
virtual |
Flush all deleted OpenGL objects within the specified availableTime. Note, must be called from a thread which has current the graphics context associated with contextID.
Implements osg::GraphicsObjectManager.
◆ scheduleGLObjectForDeletion()
virtual void osg::GLObjectManager::scheduleGLObjectForDeletion |
( |
GLuint |
globj | ) |
|
|
virtual |
schedule a GL object for deletion by the graphics thread.
◆ _deleteGLObjectHandles
◆ _mutex
The documentation for this class was generated from the following file: