The Stencil class inherits from the base class State, describing how the stencil test is operated during rendering. More...
#include <state.h>
Public Types | |
| enum class | Function { NEVER , LESS , LEQUAL , EQUAL , NOTEQUAL , GEQUAL , GREATER , ALWAYS } |
| This enumeration defines different comparison operators used for the stencil test. More... | |
| enum class | Operation { KEEP , ZERO , REPLACE , INCR , DECR , INVERT , INCR_WRAP , DECR_WRAP } |
| This enumeration defines how to update the stencil buffer after the stencil test. More... | |
Public Member Functions | |
| Stencil (bool enabled=false, Stencil::Operation sfail=Stencil::Operation::KEEP, Stencil::Operation dpfail=Stencil::Operation::KEEP, Stencil::Operation dppass=Stencil::Operation::KEEP, Stencil::Function func=Stencil::Function::ALWAYS, int ref=0, int mask=0xFF) | |
Public Member Functions inherited from cil::State | |
| State () | |
| const std::string & | className () const |
Public Member Functions inherited from cil::Object | |
| Object () | |
| virtual | ~Object () |
Public Attributes | |
| bool | enabled |
| Operation | sfail |
| Action to take if the stencil test fails. | |
| Operation | dpfail |
| Action to take if the stencil test passes, but the depth test fails. | |
| Operation | dppass |
| Action to take if both the stencil and the depth test pass. | |
| Function | func |
| int | ref |
| This member specifies the reference value for the stencil test. | |
| int | mask |
Additional Inherited Members | |
Protected Attributes inherited from cil::State | |
| std::string | m_className |
The Stencil class inherits from the base class State, describing how the stencil test is operated during rendering.
|
strong |
|
strong |
| cil::Stencil::Stencil | ( | bool | enabled = false, |
| Stencil::Operation | sfail = Stencil::Operation::KEEP, | ||
| Stencil::Operation | dpfail = Stencil::Operation::KEEP, | ||
| Stencil::Operation | dppass = Stencil::Operation::KEEP, | ||
| Stencil::Function | func = Stencil::Function::ALWAYS, | ||
| int | ref = 0, | ||
| int | mask = 0xFF ) |
| bool cil::Stencil::enabled |
| Function cil::Stencil::func |
| int cil::Stencil::mask |
| int cil::Stencil::ref |
This member specifies the reference value for the stencil test.