|
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 Member Functions |
| Depth (Function func=LESS, double zNear=0.0, double zFar=1.0, bool writeMask=true) |
| 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 bool | getModeUsage (ModeUsage &usage) const |
| Return the modes associated with this StateAttribute.
|
void | setFunction (Function func) |
Function | getFunction () const |
void | setRange (double zNear, double zFar) |
void | setZNear (double zNear) |
double | getZNear () const |
void | setZFar (double zFar) |
double | getZFar () const |
void | setWriteMask (bool mask) |
bool | getWriteMask () const |
virtual void | apply (State &state) const |
| apply the OpenGL state attributes.
|
Protected Member Functions |
virtual | ~Depth () |
Protected Attributes |
Function | _func |
double | _zNear |
double | _zFar |
bool | _depthWriteMask |