VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes | Private Member Functions
makVrv::DtIndirectGeometryStateManager Class Reference

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< intmyNextStateId
 
DtIndirectOpenGLState myLastAppliedState
 
DtDemyDe
 
bool myStateCaching
 
const bool myReverseZEnabled
 

Private Member Functions

 DtIndirectGeometryStateManager (const DtIndirectGeometryStateManager &other)=delete
 
DtIndirectGeometryStateManageroperator= (const DtIndirectGeometryStateManager &other)=delete
 

Member Typedef Documentation

typedef tbb::concurrent_unordered_map<int, DtIndirectOpenGLState> makVrv::DtIndirectGeometryStateManager::MapIdToState
protected
typedef tbb::concurrent_unordered_set<int> makVrv::DtIndirectGeometryStateManager::ConcurrentSetInts
protected

Constructor & Destructor Documentation

makVrv::DtIndirectGeometryStateManager::DtIndirectGeometryStateManager ( DtDe de)

constructor, currently does nothing

makVrv::DtIndirectGeometryStateManager::~DtIndirectGeometryStateManager ( )

destructor, currently does nothing

makVrv::DtIndirectGeometryStateManager::DtIndirectGeometryStateManager ( const DtIndirectGeometryStateManager other)
privatedelete

Copy Constructor not implemented – Copy Not Allowed.

Member Function Documentation

DtIndirectGeometryStateManager& makVrv::DtIndirectGeometryStateManager::operator= ( const DtIndirectGeometryStateManager other)
privatedelete

Assignment Operator Not implemented – Assignment Not Allowed.

virtual int makVrv::DtIndirectGeometryStateManager::stateId ( const DtIndirectOpenGLState state)
virtual

get the state id for this state

virtual bool makVrv::DtIndirectGeometryStateManager::applyState ( int  stateId)
virtual

apply the state

virtual void makVrv::DtIndirectGeometryStateManager::restoreAllModes ( osg::State &  state)
virtual

restore all modes that have been added to the manager

virtual void makVrv::DtIndirectGeometryStateManager::setStateCaching ( bool  val)
virtual

opengl call optimization/minimization between calls to apply() off by default

virtual bool makVrv::DtIndirectGeometryStateManager::stateCaching ( void  ) const
virtual

opengl call optimization/minimization between calls to apply() off by default

virtual GLenum makVrv::DtIndirectGeometryStateManager::primitiveType ( int  stateId) const
virtual

get the primitive type

virtual bool makVrv::DtIndirectGeometryStateManager::depthOnly ( int  stateId) const
virtual

whether depth only

Member Data Documentation

MapStateToId makVrv::DtIndirectGeometryStateManager::myMapStateToId
protected
MapIdToState makVrv::DtIndirectGeometryStateManager::myMapIdToState
protected
ConcurrentSetInts makVrv::DtIndirectGeometryStateManager::myUniqueModes
protected
ConcurrentSetInts makVrv::DtIndirectGeometryStateManager::myUniqueAttributes
protected
tbb::atomic<int> makVrv::DtIndirectGeometryStateManager::myNextStateId
protected
DtIndirectOpenGLState makVrv::DtIndirectGeometryStateManager::myLastAppliedState
protected
DtDe& makVrv::DtIndirectGeometryStateManager::myDe
protected
bool makVrv::DtIndirectGeometryStateManager::myStateCaching
protected
const bool makVrv::DtIndirectGeometryStateManager::myReverseZEnabled
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)