![]() |
VR-Forces Developer's Guide
|
This class manages the vaos for indirect.
There is only one vao per gl context for indirect, since we use bindless.
It is not buffer specific and just encapsulates a state.
There is only one method of interest: DtIndirectVaoManager::vao()

Public Member Functions | |
| virtual | ~DtIndirectVaoManager () |
| virtual unsigned int | vao (bool rerecord) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtIndirectVaoManager & | instance (DtDe &de) |
Protected Member Functions | |
| DtIndirectVaoManager (DtDe &de) | |
| virtual void | recordVAO (unsigned int vao) |
| virtual void | slot_contextAboutToBeDestroyed (const void *glContext) |
| virtual void | deleteVao (const void *glContext) |
Protected Attributes | |
| DtDe & | myDe |
| DtSignalConnectionManager | myConnections |
| std::unordered_map< const void *, DtGlVaoAndContext > | myGlContextToVao |
| DtOsgToGlContextTracker & | myOsgToGlContextTracker |
| DtIndirectLog & | myIndirectLog |
Private Member Functions | |
| DtIndirectVaoManager ()=delete | |
| DtIndirectVaoManager (const DtIndirectVaoManager &)=delete | |
| DtIndirectVaoManager & | operator= (const DtIndirectVaoManager &)=delete |
|
virtual |
dtor
|
protected |
only creator can create
|
privatedelete |
not allowed
|
privatedelete |
not allowed
|
static |
Access the singleton instance.
|
privatedelete |
not allowed
method to create and 'record' a vertex array object (VAO) using VAO enables us to combine multiple buffer binds into a single 'command' via 'recording' the VAO
| rerecord | indicates whether the vao should be re-recorded even if present in our internal map (perhaps because the buffer addresses, etc changed) |
internal method to record a vao
|
protectedvirtual |
slot for when a context is about to be destroyed This is used to delete the vao
|
protectedvirtual |
internal
|
protected |
|
protected |
for handling context destroyed event
|
protected |
|
protected |
|
protected |