15 #include <tbb/concurrent_unordered_map.h>
16 #include <tbb/concurrent_unordered_set.h>
17 #include <tbb/atomic.h>
49 virtual bool applyState(
int stateId);
52 virtual void restoreAllModes(osg::State &state);
56 virtual void setStateCaching(
bool val);
60 virtual bool stateCaching(
void)
const;
63 typedef tbb::concurrent_unordered_map<DtIndirectOpenGLState, int, DtIndirectOpenGLStateHasher>
MapStateToId;
66 typedef tbb::concurrent_unordered_map<int, DtIndirectOpenGLState>
MapIdToState;
ConcurrentSetInts myUniqueAttributes
Definition: DtIndirectGeometryStateManager.h:72
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
non virtual Container class for holding on to the different states that are found for indirect geomet...
Definition: DtIndirectOpenGLState.h:23
MapStateToId myMapStateToId
Definition: DtIndirectGeometryStateManager.h:64
bool myStateCaching
Definition: DtIndirectGeometryStateManager.h:78
MapIdToState myMapIdToState
Definition: DtIndirectGeometryStateManager.h:67
tbb::concurrent_unordered_set< int > ConcurrentSetInts
Definition: DtIndirectGeometryStateManager.h:69
tbb::concurrent_unordered_map< DtIndirectOpenGLState, int, DtIndirectOpenGLStateHasher > MapStateToId
Definition: DtIndirectGeometryStateManager.h:63
Simple state/glmodes class for handling setting up modes It can now handle generic state modes and at...
Definition: DtIndirectGeometryStateManager.h:29
ConcurrentSetInts myUniqueModes
Definition: DtIndirectGeometryStateManager.h:71
tbb::concurrent_unordered_map< int, DtIndirectOpenGLState > MapIdToState
Definition: DtIndirectGeometryStateManager.h:66
Contains DLL export macros.
DtIndirectOpenGLState myLastAppliedState
Definition: DtIndirectGeometryStateManager.h:76
Contains the DtIndirectOpenGLState class declaration.
tbb::atomic< int > myNextStateId
Definition: DtIndirectGeometryStateManager.h:74