![]() |
VR-Forces 4.10 Class Documentation
|
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, bool blendingEnabled, bool alphaToCoverageEnabled, const DtIndirectBlendFunction &blendFunction, const DtIndirectBlendEquation &blendEquation, const DtIndirectPolygonOffset &polyOffset, GLenum primitiveType) | |
| constructor More... | |
| ~DtIndirectOpenGLState () | |
| destructor - non virtual since this is a container class that should not be derived from More... | |
| DtIndirectOpenGLState () | |
| constructor More... | |
| DtIndirectOpenGLState & | operator= (const DtIndirectOpenGLState &other) |
| Assignment Operator. More... | |
| DtIndirectOpenGLState (const DtIndirectOpenGLState &other) | |
| Copy Constructor. More... | |
| virtual void | apply (bool reverseZ) const |
| apply the openGL state specified by this DtIndirectOpenGLState object currently only applies cull face, and polygon offset. More... | |
| virtual const SetInts & | modes (void) const |
| get the set of all modes that this state contains(and will modify on application) More... | |
| virtual const SetInts & | attributes (void) const |
| get the set of all attributes that this state contains(and will modify on application) More... | |
| virtual 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... | |
| virtual bool | operator!= (const DtIndirectOpenGLState &rhs) const |
| implemented as just !(==) More... | |
| virtual GLenum | primitiveType () const |
| get the primitive type for this open gl state More... | |
| virtual bool | cullFaceEnabled (void) const |
| set/get the value of cull face (enabled or not) More... | |
| virtual void | setCullFaceEnabled (bool val) |
| virtual void | setPolygonOffset (const DtIndirectPolygonOffset &polyOffset) |
| set/get the polygon offset More... | |
| virtual const DtIndirectPolygonOffset & | polygonOffset (void) const |
| virtual bool | blendingEnabled (void) const |
| set/get whether blending is enabled More... | |
| virtual void | setBlendingEnabled (bool val) |
| virtual bool | alphaToCoverageEnabled (void) const |
| set/get whether a2c is enabled More... | |
| virtual void | setAlphaToCoverageEnabled (bool val) |
| virtual void | setBlendFunction (const DtIndirectBlendFunction &blendFunction) |
| set/get the blending function More... | |
| virtual const DtIndirectBlendFunction & | blendFunction (void) const |
| virtual void | setBlendEquation (const DtIndirectBlendEquation &blendEquation) |
| set/get the blending equation More... | |
| virtual const DtIndirectBlendEquation & | blendEquation (void) const |
Static Public Member Functions | |
| static DtIndirectOpenGLState | lightSourceState () |
Protected Attributes | |
| bool | myCullFaceEnabled |
| culling enabled or not More... | |
| bool | myBlendingEnabled |
| blending enabled or not More... | |
| bool | myAlphaToCoverageEnabled |
| a2C enabled or not More... | |
| DtIndirectBlendFunction | myBlendFunction |
| the blending function More... | |
| DtIndirectBlendEquation | myBlendEquation |
| the blending equation More... | |
| DtIndirectPolygonOffset | myPolygonOffset |
| the polygon offset More... | |
| GLenum | myPrimitiveType |
| SetInts | mySetModes |
| SetInts | mySetAttributes |
non virtual Container class for holding on to the different states that are found for indirect geometry currently supports cull face and polygon offset
| makVrv::DtIndirectOpenGLState::DtIndirectOpenGLState | ( | bool | cullFaceEnabled, |
| bool | blendingEnabled, | ||
| bool | alphaToCoverageEnabled, | ||
| const DtIndirectBlendFunction & | blendFunction, | ||
| const DtIndirectBlendEquation & | blendEquation, | ||
| const DtIndirectPolygonOffset & | polyOffset, | ||
| GLenum | primitiveType | ||
| ) |
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.
| DtIndirectOpenGLState& makVrv::DtIndirectOpenGLState::operator= | ( | const DtIndirectOpenGLState & | other | ) |
Assignment Operator.
|
virtual |
set/get the value of cull face (enabled or not)
|
virtual |
|
virtual |
set/get the polygon offset
|
virtual |
|
virtual |
set/get whether blending is enabled
|
virtual |
|
virtual |
set/get whether a2c is enabled
|
virtual |
|
virtual |
set/get the blending function
|
virtual |
|
virtual |
set/get the blending equation
|
virtual |
|
virtual |
apply the openGL state specified by this DtIndirectOpenGLState object currently only applies cull face, and polygon offset.
|
virtual |
get the set of all modes that this state contains(and will modify on application)
|
virtual |
get the set of all attributes that this state contains(and will modify on application)
|
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 |
implemented as just !(==)
|
virtual |
get the primitive type for this open gl state
|
static |
|
protected |
culling enabled or not
|
protected |
blending enabled or not
|
protected |
a2C enabled or not
|
protected |
the blending function
|
protected |
the blending equation
|
protected |
the polygon offset
|
protected |
|
protected |
|
protected |