OGLplus (0.52.0) a C++ wrapper for OpenGL

Wrapper for the stencil-buffer-related operations. More...

#include </home/chochlik/devel/oglplus/include/oglplus/context/stencil_test.hpp>

Inheritance diagram for oglplus::context::StencilTest:

Static Public Member Functions

static void StencilFunc (CompareFunction func, GLint ref=GLint(0), GLuint mask=~GLuint(0))
 Sets the stencil function. More...
 
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. More...
 
static void StencilOp (StencilOperation sfail, StencilOperation dfail, StencilOperation dpass)
 Sets the stencil operation. More...
 
static void StencilOpSeparate (Face face, StencilOperation sfail, StencilOperation dfail, StencilOperation dpass)
 Sets the stencil operation separately for front and back faces. More...
 
static CompareFunction StencilFunc (bool backface=false)
 Returns the stencil function. More...
 
static GLuint StencilValueMask (bool backface=false)
 Returns the value of stencil mask. More...
 
static GLuint StencilRef (bool backface=false)
 Returns the stencil reference value. More...
 
static StencilOperation StencilFail (bool backface=false)
 Returns the stencil-fail action. More...
 
static StencilOperation StencilPassDepthFail (bool backface=false)
 Returns the stencil-pass depth-fail action. More...
 
static StencilOperation StencilPassDepthPass (bool backface=false)
 Returns the stencil-pass depth-pass action. More...
 

Detailed Description

Wrapper for the stencil-buffer-related operations.

Member Function Documentation

static StencilOperation oglplus::context::StencilTest::StencilFail ( bool  backface = false)
static

Returns the stencil-fail action.

Related OpenGL symbols:
glGet GL_STENCIL_FAIL GL_STENCIL_BACK_FAIL
static void oglplus::context::StencilTest::StencilFunc ( CompareFunction  func,
GLint  ref = GLint(0),
GLuint  mask = ~GLuint(0) 
)
static

Sets the stencil function.

Related OpenGL symbols:
glStencilFunc
static CompareFunction oglplus::context::StencilTest::StencilFunc ( bool  backface = false)
static

Returns the stencil function.

Related OpenGL symbols:
glGet GL_STENCIL_FUNC GL_STENCIL_BACK_FUNC
static void oglplus::context::StencilTest::StencilFuncSeparate ( Face  face,
CompareFunction  func,
GLint  ref = GLint(0),
GLuint  mask = ~GLuint(0) 
)
static

Sets the stencil function separately for front and back faces.

Related OpenGL symbols:
glStencilFuncSeparate
static void oglplus::context::StencilTest::StencilOp ( StencilOperation  sfail,
StencilOperation  dfail,
StencilOperation  dpass 
)
static

Sets the stencil operation.

Related OpenGL symbols:
glStencilOp
static void oglplus::context::StencilTest::StencilOpSeparate ( Face  face,
StencilOperation  sfail,
StencilOperation  dfail,
StencilOperation  dpass 
)
static

Sets the stencil operation separately for front and back faces.

Related OpenGL symbols:
glStencilOpSeparate
static StencilOperation oglplus::context::StencilTest::StencilPassDepthFail ( bool  backface = false)
static

Returns the stencil-pass depth-fail action.

Related OpenGL symbols:
glGet GL_STENCIL_PASS_DEPTH_FAIL GL_STENCIL_BACK_PASS_DEPTH_FAIL
static StencilOperation oglplus::context::StencilTest::StencilPassDepthPass ( bool  backface = false)
static

Returns the stencil-pass depth-pass action.

Related OpenGL symbols:
glGet GL_STENCIL_PASS_DEPTH_PASS GL_STENCIL_BACK_PASS_DEPTH_PASS
static GLuint oglplus::context::StencilTest::StencilRef ( bool  backface = false)
static

Returns the stencil reference value.

Related OpenGL symbols:
glGet GL_STENCIL_REF GL_STENCIL_BACK_REF
static GLuint oglplus::context::StencilTest::StencilValueMask ( bool  backface = false)
static

Returns the value of stencil mask.

Related OpenGL symbols:
glGet GL_STENCIL_VALUE_MASK GL_STENCIL_BACK_VALUE_MASK

The documentation for this class was generated from the following file:

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).