![]() |
VR-Forces Developer's Guide
|
Simple state/glmodes class for handling setting up modes It can now handle generic state modes and attributes so it should work for any osg states needed for indirect.
Public Member Functions | |
| DtIndirectGeometryStateManager (DtDe &de) | |
| ~DtIndirectGeometryStateManager () | |
| virtual int | stateId (const DtIndirectOpenGLState &state) |
| virtual bool | applyState (int stateId) |
| virtual void | restoreAllModes (osg::State &state) |
| virtual void | setStateCaching (bool val) |
| virtual bool | stateCaching (void) const |
| virtual GLenum | primitiveType (int stateId) const |
| virtual bool | depthOnly (int stateId) const |
Protected Types | |
| typedef tbb::concurrent_unordered_map < DtIndirectOpenGLState, int, DtIndirectOpenGLStateHasher > | MapStateToId |
| typedef tbb::concurrent_unordered_map < int, DtIndirectOpenGLState > | MapIdToState |
| typedef tbb::concurrent_unordered_set < int > | ConcurrentSetInts |
Protected Attributes | |
| MapStateToId | myMapStateToId |
| MapIdToState | myMapIdToState |
| ConcurrentSetInts | myUniqueModes |
| ConcurrentSetInts | myUniqueAttributes |
| tbb::atomic< int > | myNextStateId |
| DtIndirectOpenGLState | myLastAppliedState |
| DtDe & | myDe |
| bool | myStateCaching |
| const bool | myReverseZEnabled |
Private Member Functions | |
| DtIndirectGeometryStateManager (const DtIndirectGeometryStateManager &other)=delete | |
| DtIndirectGeometryStateManager & | operator= (const DtIndirectGeometryStateManager &other)=delete |
|
protected |
|
protected |
|
protected |
| makVrv::DtIndirectGeometryStateManager::DtIndirectGeometryStateManager | ( | DtDe & | de | ) |
constructor, currently does nothing
| makVrv::DtIndirectGeometryStateManager::~DtIndirectGeometryStateManager | ( | ) |
destructor, currently does nothing
|
privatedelete |
Copy Constructor not implemented – Copy Not Allowed.
|
privatedelete |
Assignment Operator Not implemented – Assignment Not Allowed.
|
virtual |
get the state id for this state
apply the state
|
virtual |
restore all modes that have been added to the manager
|
virtual |
opengl call optimization/minimization between calls to apply() off by default
|
virtual |
opengl call optimization/minimization between calls to apply() off by default
get the primitive type
whether depth only
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |