Public Types |
enum | Function {
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 |
| Depth () |
| Depth (const Depth &dp, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| Copy constructor using CopyOp to manage deep vs shallow copy.
|
| META_StateAttribute (osg, Depth, DEPTH) |
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 Function func) |
const Function | getFunction () const |
void | setWriteMask (const bool mask) |
const bool | getWriteMask () const |
void | setRange (const double zNear, const double zFar) |
const double | getZNear () const |
const double | getZFar () const |
virtual void | apply (State &state) const |
| apply the OpenGL state attributes.
|
Protected Methods |
virtual | ~Depth () |
Protected Attributes |
Function | _func |
bool | _depthWriteMask |
double | _zNear |
double | _zFar |