Inheritance diagram for osg::Stencil:
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 } |
enum | Operation { KEEP = GL_KEEP, ZERO = GL_ZERO, REPLACE = GL_REPLACE, INCR = GL_INCR, DECR = GL_DECR, INVERT = GL_INVERT } |
Public Member Functions | |
Stencil () | |
Stencil (const Stencil &stencil, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_StateAttribute (osg, Stencil, STENCIL) | |
virtual int | compare (const StateAttribute &sa) const |
virtual bool | getModeUsage (ModeUsage &usage) const |
void | setFunction (Function func, int ref, unsigned int mask) |
Function | getFunction () const |
int | getFunctionRef () const |
unsigned int | getFunctionMask () const |
void | setOperation (Operation sfail, Operation zfail, Operation zpass) |
Operation | getStencilFailOperation () const |
Operation | getStencilPassAndDepthFailOperation () const |
Operation | getStencilPassAndDepthPassOperation () const |
void | setWriteMask (unsigned int mask) |
unsigned int | getWriteMask () const |
virtual void | apply (State &state) const |
Protected Member Functions | |
virtual | ~Stencil () |
Protected Attributes | |
Function | _func |
int | _funcRef |
unsigned int | _funcMask |
Operation | _sfail |
Operation | _zfail |
Operation | _zpass |
unsigned int | _writeMask |
|
|
|
|
|
|
|
Copy constructor using CopyOp to manage deep vs shallow copy. |
|
|
|
apply the OpenGL state attributes. The global state for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state. Implements osg::StateAttribute. |
|
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. Implements osg::StateAttribute. |
|
|
|
|
|
|
|
|
|
get the operation when the stencil test fails. |
|
get the operation when the stencil test passes but the depth test fails. |
|
get the operation when both the stencil test and the depth test pass. |
|
|
|
|
|
|
|
set the operations to apply when the various stencil and depth tests fail or pass. First parameter is to control the operation when the stencil test fails. The second parameter is to control the operation when the stencil test passes, but depth test fails. The third parameter controls the operation when both the stencil test and depth pass. Ordering of parameter is the same as if using glStencilOp(,,). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|