| 
    hx3d
    1
    
   2D/3D Simple Game Framework 
   | 
 
2D stencil drawing. More...
#include <stencil.hpp>
Public Types | 
Public Member Functions | |
| void | setFunction (Function func, int ref, int mask) | 
| Set the stencil function.  More... | |
| void | setOperation (Operation sfail, Operation dpfail, Operation dppass) | 
| Set the stencil operation.  More... | |
| void | begin () | 
| Begin to use the stencil.  | |
| void | end () | 
| End the stencil.  | |
Static Public Member Functions | |
| static void | enable () | 
| Enable stencil mode.  | |
| static void | disable () | 
| Disable stencil mode.  | |
2D stencil drawing.
Use this to hide/show elements following a shape or to apply a function over a specified shape.
Definition at line 34 of file stencil.hpp.
      
  | 
  strong | 
Stencil function.
Definition at line 39 of file stencil.hpp.
      
  | 
  strong | 
Stencil operation.
| Enumerator | |
|---|---|
| Keep | 
 Do nothing.  | 
| Zero | 
 Remove.  | 
| Replace | 
 Replace.  | 
| Increment | 
 Increment.  | 
| IncrementWrap | 
 Increment and wrap.  | 
| Decrement | 
 Decrement.  | 
| DecrementWrap | 
 Decrement and wrap.  | 
| Invert | 
 Invert.  | 
Definition at line 61 of file stencil.hpp.
| void hx3d::graphics::Stencil::setFunction | ( | Function | func, | 
| int | ref, | ||
| int | mask | ||
| ) | 
Set the stencil function.
| func | Function | 
| ref | Ref | 
| mask | Mask | 
Definition at line 34 of file stencil.cpp.
Set the stencil operation.
| sfail | Operation when the stencil function fail | 
| dpfail | Operation when the depth buffer test fail | 
| dppass | Operation when the depth buffer test pass | 
Definition at line 38 of file stencil.cpp.
 1.8.11