|
Public Types |
| enum | ComparisonFunction {
NEVER = GL_NEVER,
LESS = GL_LESS,
EQUAL = GL_EQUAL,
LEQUAL = GL_LEQUAL,
GREATER = GL_GREATER,
NOTEQUAL = GL_NOTEQUAL,
GEQUAL = GL_GEQUAL,
ALWAYS = GL_ALWAYS
} |
Public Member Functions |
| | AlphaFunc () |
| | AlphaFunc (ComparisonFunction func, float ref) |
| | AlphaFunc (const AlphaFunc &af, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| | Copy constructor using CopyOp to manage deep vs shallow copy.
|
| | META_StateAttribute (osg, AlphaFunc, ALPHAFUNC) |
| virtual int | compare (const StateAttribute &sa) const |
| | Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
|
| virtual bool | getModeUsage (ModeUsage &usage) const |
| | Return the modes associated with this StateAttribute.
|
| void | setFunction (ComparisonFunction func, float ref) |
| void | setFunction (ComparisonFunction func) |
| ComparisonFunction | getFunction () const |
| void | setReferenceValue (float value) |
| float | getReferenceValue () const |
| virtual void | apply (State &state) const |
| | apply the OpenGL state attributes.
|
Protected Member Functions |
| virtual | ~AlphaFunc () |
Protected Attributes |
| ComparisonFunction | _comparisonFunc |
| float | _referenceValue |