13 #ifndef OGLPLUS_CONTEXT_STENCIL_TEST_1201040722_HPP
14 #define OGLPLUS_CONTEXT_STENCIL_TEST_1201040722_HPP
39 GLuint mask = ~GLuint(0)
42 OGLPLUS_GLFUNC(
StencilFunc)(GLenum(func), ref, mask);
59 GLuint mask = ~GLuint(0)
125 OGLPLUS_GLFUNC(GetIntegerv)(
127 GL_STENCIL_BACK_FUNC:
131 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
150 OGLPLUS_GLFUNC(GetIntegerv)(
152 GL_STENCIL_BACK_VALUE_MASK:
153 GL_STENCIL_VALUE_MASK,
156 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
157 return GLuint(result);
175 OGLPLUS_GLFUNC(GetIntegerv)(
181 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
182 return GLuint(result);
200 OGLPLUS_GLFUNC(GetIntegerv)(
202 GL_STENCIL_BACK_FAIL:
206 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
225 OGLPLUS_GLFUNC(GetIntegerv)(
227 GL_STENCIL_BACK_PASS_DEPTH_FAIL:
228 GL_STENCIL_PASS_DEPTH_FAIL,
231 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
250 OGLPLUS_GLFUNC(GetIntegerv)(
252 GL_STENCIL_BACK_PASS_DEPTH_PASS:
253 GL_STENCIL_PASS_DEPTH_PASS,
256 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
270 #endif // include guard
static void StencilFunc(CompareFunction func, GLint ref=GLint(0), GLuint mask=~GLuint(0))
Sets the stencil function.
Definition: stencil_test.hpp:36
static void StencilOp(StencilOperation sfail, StencilOperation dfail, StencilOperation dpass)
Sets the stencil operation.
Definition: stencil_test.hpp:80
static StencilOperation StencilPassDepthPass(bool backface=false)
Returns the stencil-pass depth-pass action.
Definition: stencil_test.hpp:247
Wrapper for the stencil-buffer-related operations.
Definition: stencil_test.hpp:28
static StencilOperation StencilFail(bool backface=false)
Returns the stencil-fail action.
Definition: stencil_test.hpp:197
Face
Polygon facing enumeration.
Definition: face_mode.hpp:34
OpenGL face type-related enumeration.
OpenGL test/comparison function enumeration.
Helper macro for optional checking of availability of GL function.
static CompareFunction StencilFunc(bool backface=false)
Returns the stencil function.
Definition: stencil_test.hpp:122
OpenGL stencil operation enumeration.
Exception class for general OpenGL errors.
Definition: basic.hpp:43
StencilOperation
Stencil operation type enumeration.
Definition: stencil_operation.hpp:27
static StencilOperation StencilPassDepthFail(bool backface=false)
Returns the stencil-pass depth-fail action.
Definition: stencil_test.hpp:222
static GLuint StencilRef(bool backface=false)
Returns the stencil reference value.
Definition: stencil_test.hpp:172
static void StencilOpSeparate(Face face, StencilOperation sfail, StencilOperation dfail, StencilOperation dpass)
Sets the stencil operation separately for front and back faces.
Definition: stencil_test.hpp:99
static void StencilFuncSeparate(Face face, CompareFunction func, GLint ref=GLint(0), GLuint mask=~GLuint(0))
Sets the stencil function separately for front and back faces.
Definition: stencil_test.hpp:55
CompareFunction
Comparison function type enumeration.
Definition: compare_function.hpp:30
static GLuint StencilValueMask(bool backface=false)
Returns the value of stencil mask.
Definition: stencil_test.hpp:147