![]() |
VR-Forces 4.8 Class Documentation
|
Manager to delete GLBuffer in the main thread. More...

Public Types | |
| typedef DtLockedBufferedQueue < osg::ref_ptr < osg::Texture::TextureObject > > | TexturesArray |
| typedef std::map < osg::observer_ptr< const osg::GraphicsContext > , TexturesArray * > | MapGCToTexArray |
| typedef DtLockedBufferedQueue < unsigned int > | VAOArray |
| typedef std::map < osg::observer_ptr< const osg::GraphicsContext > , VAOArray * > | MapContextsToVAOArray |
| typedef DtLockedBufferedQueue < unsigned int > | FBOArray |
| typedef std::map < osg::observer_ptr< const osg::GraphicsContext > , FBOArray * > | MapContextsToFBOArray |
Public Member Functions | |
| virtual | ~DtGLDeleteObjectManager () |
| DTOR. More... | |
| virtual void | addHandleToDelete (unsigned int handle) |
| Add a GLBuffer handle to delete in the main thread. More... | |
| virtual void | addTextureIdToDelete (const osg::GraphicsContext *gContext, osg::Texture::TextureObject *to) |
| Add a texture id to delete in the main thread. More... | |
| virtual void | addVertexArrayObjectToDelete (const osg::GraphicsContext *gContext, unsigned int vaoId) |
| Add a vertex array object to delete in the main thread. More... | |
| virtual void | addFrameBufferObjectToDelete (const osg::GraphicsContext *gContext, unsigned int fboId) |
| Add a frame buffer object to delete in the main thread. More... | |
| virtual void | addFrameBufferObjectToDelete (osg::observer_ptr< const osg::GraphicsContext > &gContext, unsigned int fboId) |
| virtual void | flush (const osg::GraphicsContext *gc, unsigned int contextId) |
| delete all the handles More... | |
| virtual void | flushInvalidGcs (void) |
| delete all the handles across all contexts that are invalid More... | |
| virtual void | slot_displayToBeDestroyed (const std::string &displayName, DtDe *de) |
| virtual void | clearData () |
| clear out maps and other data structures More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtGLDeleteObjectManager & | instance (DtDe &de) |
| Access the singleton instance. More... | |
Protected Member Functions | |
| DtGLDeleteObjectManager (DtDe &de) | |
| protected CTOR More... | |
| virtual void | flushTexturesArray (std::vector< osg::ref_ptr< osg::Texture::TextureObject > > *texArr, const osg::GraphicsContext *gc, unsigned int contextId) |
| virtual void | deleteBuffers (void) |
| virtual void | deleteTextures (const osg::GraphicsContext *gc, unsigned int contextId) |
| virtual void | deleteVAOs (const osg::GraphicsContext *gc, unsigned int contextId) |
| virtual void | deleteFBOs (const osg::GraphicsContext *gc, unsigned int contextId) |
| virtual void | flushVAOsForInvalidGcs (void) |
| virtual void | flushFBOsForInvalidGcs (void) |
Static Protected Member Functions | |
| static void | registerInstance (DtGLDeleteObjectManager *mgr, DtDe &de) |
| register the manager More... | |
| static DtGLDeleteObjectManager * | findInstance (DtDe &de) |
| register if the manager is registered More... | |
Protected Attributes | |
| DtLockedBufferedQueue < unsigned int > | myGlBufferToDeleteList |
| list of handle to delete More... | |
| MapGCToTexArray | myGraphicsContextToTexturesArray |
| For keeping texture id's per context. More... | |
| MapContextsToVAOArray | myGraphicsContextToVAOArray |
| For keeping vertex array object id's per context. More... | |
| MapContextsToFBOArray | myGraphicsContextToFBOArray |
| For keeping vertex array object id's per context. More... | |
| DtSignalConnectionManager | myConnections |
| Any signals to process. More... | |
| DtDe & | myDe |
Manager to delete GLBuffer in the main thread.
| typedef DtLockedBufferedQueue<osg::ref_ptr<osg::Texture::TextureObject> > makVrv::DtGLDeleteObjectManager::TexturesArray |
| typedef std::map< osg::observer_ptr<const osg::GraphicsContext>, TexturesArray* > makVrv::DtGLDeleteObjectManager::MapGCToTexArray |
| typedef std::map< osg::observer_ptr<const osg::GraphicsContext >, VAOArray*> makVrv::DtGLDeleteObjectManager::MapContextsToVAOArray |
| typedef std::map< osg::observer_ptr<const osg::GraphicsContext >, FBOArray*> makVrv::DtGLDeleteObjectManager::MapContextsToFBOArray |
|
virtual |
DTOR.
|
protected |
protected CTOR
|
static |
Access the singleton instance.
Add a GLBuffer handle to delete in the main thread.
|
virtual |
Add a texture id to delete in the main thread.
|
virtual |
Add a vertex array object to delete in the main thread.
|
virtual |
Add a frame buffer object to delete in the main thread.
|
virtual |
|
virtual |
delete all the handles
|
virtual |
delete all the handles across all contexts that are invalid
|
virtual |
|
virtual |
clear out maps and other data structures
|
staticprotected |
register the manager
|
staticprotected |
register if the manager is registered
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
list of handle to delete
|
protected |
For keeping texture id's per context.
|
protected |
For keeping vertex array object id's per context.
|
protected |
For keeping vertex array object id's per context.
|
protected |
Any signals to process.
|
protected |