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 | Static 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

Public Member Functions

 DtIndirectOpenGLState (bool cullFaceEnabled, bool blendingEnabled, bool alphaToCoverageEnabled, const DtIndirectBlendFunction &blendFunction, const DtIndirectBlendEquation &blendEquation, const DtIndirectPolygonOffset &polyOffset, GLenum primitiveType, bool depthOnly)
 
 ~DtIndirectOpenGLState ()
 
 DtIndirectOpenGLState ()
 
DtIndirectOpenGLStateoperator= (const DtIndirectOpenGLState &other)
 
 DtIndirectOpenGLState (const DtIndirectOpenGLState &other)
 
virtual void apply () const
 
virtual const SetIntsmodes (void) const
 
virtual const SetIntsattributes (void) const
 
virtual bool operator== (const DtIndirectOpenGLState &rhs) const
 
virtual bool operator!= (const DtIndirectOpenGLState &rhs) const
 
virtual GLenum primitiveType () const
 
virtual bool cullFaceEnabled (void) const
 
virtual void setCullFaceEnabled (bool val)
 
virtual void setPolygonOffset (const DtIndirectPolygonOffset &polyOffset)
 
virtual const
DtIndirectPolygonOffset
polygonOffset (void) const
 
virtual bool blendingEnabled (void) const
 
virtual void setBlendingEnabled (bool val)
 
virtual bool alphaToCoverageEnabled (void) const
 
virtual void setAlphaToCoverageEnabled (bool val)
 
virtual void setBlendFunction (const DtIndirectBlendFunction &blendFunction)
 
virtual const
DtIndirectBlendFunction
blendFunction (void) const
 
virtual void setBlendEquation (const DtIndirectBlendEquation &blendEquation)
 
virtual const
DtIndirectBlendEquation
blendEquation (void) const
 
virtual void setDepthOnly (bool val)
 
virtual const bool depthOnly (void) const
 

Static Public Member Functions

static DtIndirectOpenGLState lightSourceState ()
 

Protected Attributes

bool myCullFaceEnabled
 
bool myBlendingEnabled
 
bool myAlphaToCoverageEnabled
 
DtIndirectBlendFunction myBlendFunction
 
DtIndirectBlendEquation myBlendEquation
 
DtIndirectPolygonOffset myPolygonOffset
 
GLenum myPrimitiveType
 
bool myDepthOnly
 
SetInts mySetModes
 
SetInts mySetAttributes
 

Constructor & Destructor Documentation

makVrv::DtIndirectOpenGLState::DtIndirectOpenGLState ( bool  cullFaceEnabled,
bool  blendingEnabled,
bool  alphaToCoverageEnabled,
const DtIndirectBlendFunction blendFunction,
const DtIndirectBlendEquation blendEquation,
const DtIndirectPolygonOffset polyOffset,
GLenum  primitiveType,
bool  depthOnly 
)

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

set/get the value of cull face (enabled or not)

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

set/get the value of cull face (enabled or not)

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

set/get the polygon offset

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

set/get the polygon offset

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

set/get whether blending is enabled

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

set/get whether blending is enabled

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

set/get whether a2c is enabled

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

set/get whether a2c is enabled

virtual void makVrv::DtIndirectOpenGLState::setBlendFunction ( const DtIndirectBlendFunction blendFunction)
virtual

set/get the blending function

virtual const DtIndirectBlendFunction& makVrv::DtIndirectOpenGLState::blendFunction ( void  ) const
virtual

set/get the blending function

virtual void makVrv::DtIndirectOpenGLState::setBlendEquation ( const DtIndirectBlendEquation blendEquation)
virtual

set/get the blending equation

virtual const DtIndirectBlendEquation& makVrv::DtIndirectOpenGLState::blendEquation ( void  ) const
virtual

set/get the blending equation

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

set/get whether depth only

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

set/get whether depth only

virtual void makVrv::DtIndirectOpenGLState::apply ( ) 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)

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

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

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

implemented as just !(==)

virtual GLenum makVrv::DtIndirectOpenGLState::primitiveType ( ) const
virtual

get the primitive type for this open gl state

static DtIndirectOpenGLState makVrv::DtIndirectOpenGLState::lightSourceState ( )
static

Member Data Documentation

bool makVrv::DtIndirectOpenGLState::myCullFaceEnabled
protected

culling enabled or not

bool makVrv::DtIndirectOpenGLState::myBlendingEnabled
protected

blending enabled or not

bool makVrv::DtIndirectOpenGLState::myAlphaToCoverageEnabled
protected

a2C enabled or not

DtIndirectBlendFunction makVrv::DtIndirectOpenGLState::myBlendFunction
protected

the blending function

DtIndirectBlendEquation makVrv::DtIndirectOpenGLState::myBlendEquation
protected

the blending equation

DtIndirectPolygonOffset makVrv::DtIndirectOpenGLState::myPolygonOffset
protected

the polygon offset

GLenum makVrv::DtIndirectOpenGLState::myPrimitiveType
protected
bool makVrv::DtIndirectOpenGLState::myDepthOnly
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 Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)