VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtIndirectOpenGLState Class Reference

non virtual Container class for holding on to the different states that are found for indirect geometry currently supports cull face and polygon offset More...

Public Member Functions

 DtIndirectOpenGLState (bool cullFaceEnabled, const DtIndirectPolygonOffset &polyOffset)
 constructor More...
 
 ~DtIndirectOpenGLState ()
 destructor - non virtual since this is a container class that should not be derived from More...
 
 DtIndirectOpenGLState ()
 constructor More...
 
DtIndirectOpenGLStateoperator= (const DtIndirectOpenGLState &other)
 Assignment Operator. More...
 
 DtIndirectOpenGLState (const DtIndirectOpenGLState &other)
 Copy Constructor. More...
 
virtual bool cullFaceEnabled (void) const
 get the value of cull face (enabled or not) More...
 
virtual void setCullFaceEnabled (bool val)
 set the value of cull face (enabled or not) More...
 
virtual void setPolygonOffset (const DtIndirectPolygonOffset &polyOffset)
 set the polygon offset More...
 
virtual const
DtIndirectPolygonOffset
polygonOffset (void) const
 get the polygon offset More...
 
virtual void apply (void) const
 apply the openGL state specified by this DtIndirectOpenGLState object currently only applies cull face, and polygon offset. More...
 
virtual const SetIntsmodes (void) const
 get the set of all modes that this state contains(and will modify on application) More...
 
virtual const SetIntsattributes (void) const
 get the set of all attributes that this state contains(and will modify on application) More...
 
bool operator== (const DtIndirectOpenGLState &rhs) const
 comparison operator to check for equality of two DtIndirectOpenGLStates only compares the myCullFaceEnabled and myPolygonOffset since the state sets should be constant across all DtIndirectOpenGLStates More...
 
bool operator!= (const DtIndirectOpenGLState &rhs) const
 implemented as just !(==) More...
 

Protected Attributes

bool myCullFaceEnabled
 
DtIndirectPolygonOffset myPolygonOffset
 
SetInts mySetModes
 
SetInts mySetAttributes
 

Detailed Description

non virtual Container class for holding on to the different states that are found for indirect geometry currently supports cull face and polygon offset

Constructor & Destructor Documentation

makVrv::DtIndirectOpenGLState::DtIndirectOpenGLState ( bool  cullFaceEnabled,
const DtIndirectPolygonOffset polyOffset 
)

constructor

makVrv::DtIndirectOpenGLState::~DtIndirectOpenGLState ( )

destructor - non virtual since this is a container class that should not be derived from

makVrv::DtIndirectOpenGLState::DtIndirectOpenGLState ( )

constructor

makVrv::DtIndirectOpenGLState::DtIndirectOpenGLState ( const DtIndirectOpenGLState other)

Copy Constructor.

Member Function Documentation

DtIndirectOpenGLState& makVrv::DtIndirectOpenGLState::operator= ( const DtIndirectOpenGLState other)

Assignment Operator.

virtual bool makVrv::DtIndirectOpenGLState::cullFaceEnabled ( void  ) const
virtual

get the value of cull face (enabled or not)

virtual void makVrv::DtIndirectOpenGLState::setCullFaceEnabled ( bool  val)
virtual

set the value of cull face (enabled or not)

virtual void makVrv::DtIndirectOpenGLState::setPolygonOffset ( const DtIndirectPolygonOffset polyOffset)
virtual

set the polygon offset

virtual const DtIndirectPolygonOffset& makVrv::DtIndirectOpenGLState::polygonOffset ( void  ) const
virtual

get the polygon offset

virtual void makVrv::DtIndirectOpenGLState::apply ( void  ) const
virtual

apply the openGL state specified by this DtIndirectOpenGLState object currently only applies cull face, and polygon offset.

virtual const SetInts& makVrv::DtIndirectOpenGLState::modes ( void  ) const
virtual

get the set of all modes that this state contains(and will modify on application)

virtual const SetInts& makVrv::DtIndirectOpenGLState::attributes ( void  ) const
virtual

get the set of all attributes that this state contains(and will modify on application)

bool makVrv::DtIndirectOpenGLState::operator== ( const DtIndirectOpenGLState rhs) const

comparison operator to check for equality of two DtIndirectOpenGLStates only compares the myCullFaceEnabled and myPolygonOffset since the state sets should be constant across all DtIndirectOpenGLStates

bool makVrv::DtIndirectOpenGLState::operator!= ( const DtIndirectOpenGLState rhs) const

implemented as just !(==)

Member Data Documentation

bool makVrv::DtIndirectOpenGLState::myCullFaceEnabled
protected
DtIndirectPolygonOffset makVrv::DtIndirectOpenGLState::myPolygonOffset
protected
SetInts makVrv::DtIndirectOpenGLState::mySetModes
protected
SetInts makVrv::DtIndirectOpenGLState::mySetAttributes
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)