21 #ifndef HX3D_GRAPHICS_STENCIL 22 #define HX3D_GRAPHICS_STENCIL 24 #include "hx3d/graphics/gl.hpp" 126 GLenum convertFunction(
Function func);
Function
Stencil function.
Hide when it's not equal.
void setFunction(Function func, int ref, int mask)
Set the stencil function.
static void disable()
Disable stencil mode.
static void enable()
Enable stencil mode.
void setOperation(Operation sfail, Operation dpfail, Operation dppass)
Set the stencil operation.
Hide when it's greater or equal.
Operation
Stencil operation.
Hide when it's equal.
Hide when it's less or equal.
Hide when it's greater.
void end()
End the stencil.
void begin()
Begin to use the stencil.