VR-Forces 4.7 Class Documentation
 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
makVrv::DtIndirectGeometryStateManager Class Reference

Simple state/glmodes class for handling setting up modes This will need to be extended to handle more than one mode at a time if we end up finding another mode we want to render with chaned for now it is just handling the GL_CULL_FACE mode not putting in it's own file at this point since the DtIndirectGeometry class is the only user and it may go away if we need a better solution for indirect state changes. More...

Public Member Functions

 DtIndirectGeometryStateManager ()
 contructor, currently does nothing
 ~DtIndirectGeometryStateManager ()
 desctructor, currently does nothing
void insertMode (int index, bool enable, int mode)
 add a glMode to the list of modes at the specified index, enable specifies whether it is turning the mode on or off
void applyMode (int index) const
 apply the mode at index
void restoreAllModes (osg::State &state) const
 restore all modes that have been added to the manager
int numberOfStates () const
 number of different states being handled by the manager

Protected Types

typedef std::pair< bool, intGlModeSetting
typedef std::vector
< GlModeSetting
GlModeVec
typedef std::set< intGlModeSet

Protected Attributes

GlModeVec myModesVec
GlModeSet myModeSet

Detailed Description

Simple state/glmodes class for handling setting up modes This will need to be extended to handle more than one mode at a time if we end up finding another mode we want to render with chaned for now it is just handling the GL_CULL_FACE mode not putting in it's own file at this point since the DtIndirectGeometry class is the only user and it may go away if we need a better solution for indirect state changes.

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtIndirectGeometryStateManager::DtIndirectGeometryStateManager ( )

contructor, currently does nothing

makVrv::DtIndirectGeometryStateManager::~DtIndirectGeometryStateManager ( )

desctructor, currently does nothing

Member Function Documentation

void makVrv::DtIndirectGeometryStateManager::insertMode ( int  index,
bool  enable,
int  mode 
)

add a glMode to the list of modes at the specified index, enable specifies whether it is turning the mode on or off

void makVrv::DtIndirectGeometryStateManager::applyMode ( int  index) const

apply the mode at index

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

restore all modes that have been added to the manager

int makVrv::DtIndirectGeometryStateManager::numberOfStates ( ) const

number of different states being handled by the manager

Member Data Documentation

GlModeVec makVrv::DtIndirectGeometryStateManager::myModesVec
protected
GlModeSet makVrv::DtIndirectGeometryStateManager::myModeSet
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)