![]() |
VR-Forces 5.0.2 Developer's Guide
|
Manager to delete GLBuffer in the main thread.

Public Types | |
| typedef DtLockedBufferedQueue < unsigned int > | TexturesArray |
| typedef std::map < osg::observer_ptr< const osg::GraphicsContext > , TexturesArray * > | MapGCToTexArray |
| typedef DtLockedBufferedQueue < DtGlVaoAndContext > | VAOArray |
| typedef std::map < osg::observer_ptr< const osg::GraphicsContext > , VAOArray * > | MapContextsToVAOArray |
| typedef DtLockedBufferedQueue < DtGlFboAndContext > | FBOArray |
| typedef std::map < osg::observer_ptr< const osg::GraphicsContext > , FBOArray * > | MapContextsToFBOArray |
Public Member Functions | |
| virtual | ~DtGlDeleteObjectManager () |
| virtual void | addHandleToDelete (unsigned int handle) |
| virtual void | addTextureIdToDelete (const osg::GraphicsContext *gContext, unsigned int textureObject) |
| virtual void | addVertexArrayObjectToDelete (const osg::GraphicsContext *gContext, const DtGlVaoAndContext &vao) |
| virtual void | addFrameBufferObjectToDelete (const osg::GraphicsContext *gContext, const DtGlFboAndContext &fbo) |
| virtual void | addFrameBufferObjectToDelete (osg::observer_ptr< const osg::GraphicsContext > &gContext, const DtGlFboAndContext &fbo) |
| virtual void | flush (const osg::GraphicsContext *gc, bool allowTextureDelete=true) |
| virtual void | flushInvalidGcs (void) |
| virtual void | slot_displayToBeDestroyed (const std::string &displayName, DtDe *de) |
| virtual void | clearData () |
| virtual void | windowDestroyAddTextureIdToDelete (unsigned int textureObject) |
| virtual void | windowDestroyAddTextureIdToKeep (unsigned int textureObject) |
| virtual void | windowDestroyFlushTextureIdsToDelete (const osg::GraphicsContext *gContext) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtGlDeleteObjectManager & | instance (DtDe &de) |
Protected Member Functions | |
| DtGlDeleteObjectManager (DtDe &de) | |
| virtual void | flushTexturesArray (std::vector< unsigned int > *texArr, const osg::GraphicsContext *gc, bool allowTextureDelete) |
| virtual void | deleteBuffers (void) |
| virtual void | deleteTextures (const osg::GraphicsContext *gc, bool allowTextureDelete) |
| virtual void | deleteVAOs (const osg::GraphicsContext *gc) |
| virtual void | deleteFBOs (const osg::GraphicsContext *gc) |
| virtual void | flushVAOsForInvalidGcs (void) |
| virtual void | flushFBOsForInvalidGcs (void) |
Static Protected Member Functions | |
| static void | registerInstance (DtGlDeleteObjectManager *mgr, DtDe &de) |
| static DtGlDeleteObjectManager * | findInstance (DtDe &de) |
| 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. if allowTextureDelete is false, then the textures can be made non-resident, but not deleted. allowTextureDelete is false when a window is being shut down, but there are remaining windows.
|
virtual |
delete all the handles across all contexts that are invalid
|
virtual |
|
virtual |
clear out maps and other data structures
|
virtual |
Called during a window shudown to add a texture id to the delete list.
|
virtual |
Called during a window shudown to add a texture id to the keep list.
|
virtual |
Called during a window shut down to resolve the collected texture keep/delete list. The keep/delete list are generated from previous windowDestroyAddTextureIdToDelete and windowDestroyRemoveTextureIdToKeep calls. This adds all texture id's in the final resolved delete list to be deleted in the main thread.
|
staticprotected |
register the manager
|
staticprotected |
register if the manager is registered
|
protectedvirtual |
make textures non-resident if needed. if allowTextureDelete is true, then the texture handle can also be deleted if the texture is no longer needed from the myGlTextureResidencyManager
|
protectedvirtual |
|
protectedvirtual |
make textures non-resident if needed. if allowTextureDelete is true, then the texture handle can also be deleted if the texture is no longer needed from the myGlTextureResidencyManagere
|
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 |
|
protected |