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 Methods |
| AlphaFunc () |
| 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 void | getAssociatedModes (std::vector< GLMode > &modes) const |
| return the modes associated with this StateSet
|
void | setFunction (const ComparisonFunction func, const float ref) |
const ComparisonFunction | getFunction () const |
const float | getReferenceValue () const |
virtual void | apply (State &state) const |
| apply the OpenGL state attributes.
|
Protected Methods |
virtual | ~AlphaFunc () |
Protected Attributes |
ComparisonFunction | _comparisonFunc |
float | _referenceValue |