![]() |
VR-Forces Developer's Guide
|
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.
Public Member Functions | |
| virtual | ~DtOsgToGlContextTracker () |
| DtOsgToGlContextTracker ()=delete | |
| DtOsgToGlContextTracker & | operator= (const DtOsgToGlContextTracker &rhs)=delete |
| DtOsgToGlContextTracker (const DtOsgToGlContextTracker &rhs)=delete | |
| virtual void | run () |
| virtual const void * | currentGlContext (void) const |
| virtual void | contextAboutToBeDestroyed (const void *glContext) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtOsgToGlContextTracker & | instance (DtDe &de) |
Public Attributes | |
| boost::signalslib::signal < void(const void *)> | signal_newContextAdded |
| boost::signalslib::signal < void(const void *)> | signal_contextAboutToBeDestroyed |
Protected Member Functions | |
| DtOsgToGlContextTracker (DtDe &de) | |
Protected Attributes | |
| DtDe & | myDe |
| const void * | myCurrentGlContext = nullptr |
| std::unordered_set< const void * > | myGlContexts |
| DtIndirectLog & | myIndirectLog |
|
virtual |
destructor
|
delete |
not allowed
|
delete |
not allowed
|
protected |
cannot create directly
|
static |
Access the singleton instance.
|
delete |
not allowed
|
virtual |
called per frame, per context via DtMainThreadJobsManager () which is in turn called per frame, per context via osg
|
virtual |
Current opengl context. Clients can use this in any function nested at any level under DtOsgRenderer::render() This function is useful, in lieu of proliferating wglGetCurrentContext/glXGetCurrentContext everywhere This function is useful, in lieu of proliferating DtGlUtils::glContext (which internally calls wglGetCurrentContext/glXGetCurrentContext) everywhere.
|
virtual |
The windowing api will call this. via the DtOsgAdapterQtWidget destructor. ***Do not use directly!!***.
| boost::signalslib::signal<void(const void*)> makVrv::DtOsgToGlContextTracker::signal_newContextAdded |
This is the signal that vrv clients should connect to, to get the event that a new context was detected.
| boost::signalslib::signal<void(const void*)> makVrv::DtOsgToGlContextTracker::signal_contextAboutToBeDestroyed |
This is the signal that vrv clients should connect to, to get the event that the context is about to be destroyed.
|
protected |
|
protected |
|
protected |
|
protected |