15 #include <tbb/concurrent_unordered_map.h>
16 #include <tbb/concurrent_unordered_set.h>
17 #include <tbb/atomic.h>
51 virtual bool applyState(
int stateId);
54 virtual void restoreAllModes(osg::State &state);
58 virtual void setStateCaching(
bool val);
62 virtual bool stateCaching(
void)
const;
65 virtual GLenum primitiveType(
int stateId)
const;
68 virtual bool depthOnly(
int stateId)
const;
72 typedef tbb::concurrent_unordered_map<DtIndirectOpenGLState, int, DtIndirectOpenGLStateHasher>
MapStateToId;
75 typedef tbb::concurrent_unordered_map<int, DtIndirectOpenGLState>
MapIdToState;
ConcurrentSetInts myUniqueAttributes
Definition: DtIndirectGeometryStateManager.h:81
DtDe & myDe
Definition: DtIndirectGeometryStateManager.h:87
#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:25
MapStateToId myMapStateToId
Definition: DtIndirectGeometryStateManager.h:73
bool myStateCaching
Definition: DtIndirectGeometryStateManager.h:89
MapIdToState myMapIdToState
Definition: DtIndirectGeometryStateManager.h:76
tbb::concurrent_unordered_set< int > ConcurrentSetInts
Definition: DtIndirectGeometryStateManager.h:78
tbb::concurrent_unordered_map< DtIndirectOpenGLState, int, DtIndirectOpenGLStateHasher > MapStateToId
Definition: DtIndirectGeometryStateManager.h:72
Simple state/glmodes class for handling setting up modes It can now handle generic state modes and at...
Definition: DtIndirectGeometryStateManager.h:31
ConcurrentSetInts myUniqueModes
Definition: DtIndirectGeometryStateManager.h:80
tbb::concurrent_unordered_map< int, DtIndirectOpenGLState > MapIdToState
Definition: DtIndirectGeometryStateManager.h:75
const bool myReverseZEnabled
Definition: DtIndirectGeometryStateManager.h:91
unsigned int GLenum
Definition: DtGlTextureBufferObject.h:18
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:70
DtIndirectOpenGLState myLastAppliedState
Definition: DtIndirectGeometryStateManager.h:85
Contains the DtIndirectOpenGLState class declaration.
tbb::atomic< int > myNextStateId
Definition: DtIndirectGeometryStateManager.h:83