19 #include <unordered_map>
24 class DtOsgToGlContextTracker;
60 virtual unsigned int vao(
bool rerecord);
71 virtual void deleteVao(
const void* glContext);
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
virtual unsigned int vao(bool rerecord)
method to create and 'record' a vertex array object (VAO) using VAO enables us to combine multiple bu...
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
virtual void deleteVao(const void *glContext)
internal
DtIndirectLog & myIndirectLog
Definition: DtIndirectVaoManager.h:83
Encapsulates an opengl object and the context it was created in.
virtual ~DtIndirectVaoManager()
dtor
Contains makVrv::DtVirtualBaseClass class.
DtIndirectVaoManager & operator=(const DtIndirectVaoManager &)=delete
not allowed
DtIndirectVaoManager()=delete
not allowed
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
std::unordered_map< const void *, DtGlVaoAndContext > myGlContextToVao
Definition: DtIndirectVaoManager.h:79
This class manages the vaos for indirect.
Definition: DtIndirectVaoManager.h:34
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.
virtual void slot_contextAboutToBeDestroyed(const void *glContext)
slot for when a context is about to be destroyed This is used to delete the vao
virtual void recordVAO(unsigned int vao)
internal method to record a vao
DtOsgToGlContextTracker & myOsgToGlContextTracker
Definition: DtIndirectVaoManager.h:81
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:76
DtDe & myDe
Definition: DtIndirectVaoManager.h:74
DtSignalConnectionManager myConnections
for handling context destroyed event
Definition: DtIndirectVaoManager.h:77
static DtIndirectVaoManager & instance(DtDe &de)
Access the singleton instance.