20 #include <unordered_map>
27 class DtOsgToGlContextTracker;
29 class DtGlDeleteObjectManager;
77 virtual unsigned int getOrCreateVao(
bool& created);
83 virtual void clearVaos(
void);
88 virtual void slot_contextAboutToBeDestroyed(
const void* glContext);
91 virtual void deleteVao(
const void* glContext);
DtOsgToGlContextTracker & myOsgToGlContextTracker
Definition: DtGlVaoManager.h:100
const char * creatorTypeName< DtGlVaoManager >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtGlVaoManager.h:39
This class tracks gl contexts as they are created/destroyed per window creation/destruction. It is also what clients should hook to via signal_contextAboutToBeDestroyed for context destruction cleanup.
Definition: DtOsgToGlContextTracker.h:28
DtIndirectLog & myIndirectLog
Definition: DtGlVaoManager.h:102
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Encapsulates an opengl object and the context it was created in.
DtSignalConnectionManager myConnections
for handling context destroyed event
Definition: DtGlVaoManager.h:96
std::unordered_map< const void *, DtGlVaoAndContext > myGlContextToVao
Definition: DtGlVaoManager.h:98
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
DtDe & myDe
Definition: DtGlVaoManager.h:93
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
This class is specifically used by the indirect system It's separate so that it doesn't interfere wit...
Definition: DtIndirectLog.h:30
Base class to provide boost signal/slot management.
DtGlDeleteObjectManager & myGlDeleteObjectManager
Definition: DtGlVaoManager.h:104
Vaos are OpenGL context specific. They need to be deleted in the context they are created in...
Definition: DtGlDeleteObjectManager.h:58
This class is used to manage an opengl vertex array object (VAO) dealing with multiple opengl context...
Definition: DtGlVaoManager.h:58
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
DtVirtualBaseClassCreator< DtGlVaoManager > DtGlVaoManagerCreator
creator
Definition: DtGlVaoManager.h:32