GL++
0.1
OpenGL API C++ Wrapper
|
Unit that controls stencil testing. More...
#include <stencil_test_unit.hpp>
Public Types | |
typedef GLuint | mask_type |
Type of user defined binary mask for stencil operations. | |
typedef GLint | compare_reference_type |
Type of reference value that used in comparison at stencil test operation. |
Public Member Functions | |
void | enable () |
Enable stencil testing. | |
void | disable () |
Disable stencil testing. | |
bool | is_enabled () |
Check if stencil testing is enabled. | |
void | set_write_mask (mask_type mask) |
Control the front and back writing of individual bits in the stencil planes. | |
void | set_face_write_mask (face_type face, mask_type mask) |
Control the front and/or back writing of individual bits in the stencil planes. | |
mask_type | get_write_mask () |
Get the current write mask that is used for writing front-facing polygons. | |
mask_type | get_back_write_mask () |
Get the current write mask that is used for writing back-facing polygons. | |
void | set_compare_func (compare_func func, compare_reference_type ref, mask_type mask) |
Set front and back function and reference value for stencil testing. | |
void | set_face_compare_func (face_type face, compare_func func, compare_reference_type ref, mask_type mask) |
Set front and/or back function and reference value for stencil testing. | |
compare_func | get_compare_func () |
Get front function for stencil testing. | |
compare_func | get_back_compare_func () |
Get back function for stencil testing. | |
mask_type | get_compare_mask () |
Get back compare mask for stencil testing. | |
mask_type | get_back_compare_mask () |
Get front compare mask for stencil testing. | |
compare_reference_type | get_compare_reference () |
Get front compare reference for stencil testing. | |
compare_reference_type | get_back_compare_reference () |
Get back compare reference for stencil testing. | |
void | set_op (stencil_op stencil_fail, stencil_op stencil_pass_depth_fail, stencil_op stencil_pass_depth_pass) |
Set front and back stencil test actions. | |
void | set_face_op (face_type face, stencil_op stencil_fail, stencil_op stencil_pass_depth_fail, stencil_op stencil_pass_depth_pass) |
Set front and/or back stencil test actions. | |
stencil_op | get_stencil_fail_op () |
Get action taken when front stencil test failed. | |
stencil_op | get_back_stencil_fail_op () |
Get action taken when back stencil test failed. | |
stencil_op | get_stencil_pass_depth_fail_op () |
Get action taken when front stencil passed and depth test failed. | |
stencil_op | get_back_stencil_pass_depth_fail_op () |
Get action taken when back stencil passed and depth test failed. | |
stencil_op | get_stencil_pass_depth_pass_op () |
Get action taken when both front stencil and depth test passed. | |
stencil_op | get_back_stencil_pass_depth_pass_op () |
Get action taken when both back stencil and depth test passed. | |
stencil_op | get_op (face_type face, bool stencil_pass, bool depth_pass) throw (std::invalid_argument) |
Get action taken based on the case described by parameter. | |
Public Member Functions inherited from glpp::noncopyable | |
noncopyable (noncopyable &) | |
noncopyable & | operator= (noncopyable &) |
Protected Member Functions | |
stencil_test_unit (context &ctx) | |
Construction is permitted only by glpp::context. |
Protected Attributes | |
context & | m_ctx |
Reference to context that this is unit is part of. |
Friends | |
class | context |
All units are friend of context. |
Unit that controls stencil testing.
typedef GLint glpp::stencil_test_unit::compare_reference_type |
Type of reference value that used in comparison at stencil test operation.
typedef GLuint glpp::stencil_test_unit::mask_type |
Type of user defined binary mask for stencil operations.
void glpp::stencil_test_unit::disable | ( | ) |
Disable stencil testing.
void glpp::stencil_test_unit::enable | ( | ) |
Enable stencil testing.
compare_func glpp::stencil_test_unit::get_back_compare_func | ( | ) |
Get back function for stencil testing.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilFuncSeparate.xml
stencil_test_unit::mask_type glpp::stencil_test_unit::get_back_compare_mask | ( | ) |
Get front compare mask for stencil testing.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilFuncSeparate.xml
stencil_test_unit::compare_reference_type glpp::stencil_test_unit::get_back_compare_reference | ( | ) |
Get back compare reference for stencil testing.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilFuncSeparate.xml
stencil_op glpp::stencil_test_unit::get_back_stencil_fail_op | ( | ) |
Get action taken when back stencil test failed.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilOpSeparate.xml
stencil_op glpp::stencil_test_unit::get_back_stencil_pass_depth_fail_op | ( | ) |
Get action taken when back stencil passed and depth test failed.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilOpSeparate.xml
stencil_op glpp::stencil_test_unit::get_back_stencil_pass_depth_pass_op | ( | ) |
Get action taken when both back stencil and depth test passed.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilOpSeparate.xml
stencil_test_unit::mask_type glpp::stencil_test_unit::get_back_write_mask | ( | ) |
Get the current write mask that is used for writing back-facing polygons.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilMaskSeparate.xml
compare_func glpp::stencil_test_unit::get_compare_func | ( | ) |
Get front function for stencil testing.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilFuncSeparate.xml
stencil_test_unit::mask_type glpp::stencil_test_unit::get_compare_mask | ( | ) |
Get back compare mask for stencil testing.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilFuncSeparate.xml
stencil_test_unit::compare_reference_type glpp::stencil_test_unit::get_compare_reference | ( | ) |
Get front compare reference for stencil testing.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilFuncSeparate.xml
stencil_op glpp::stencil_test_unit::get_op | ( | face_type | face, |
bool | stencil_pass, | ||
bool | depth_pass | ||
) | throw (std::invalid_argument) |
Get action taken based on the case described by parameter.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilOpSeparate.xml
stencil_op glpp::stencil_test_unit::get_stencil_fail_op | ( | ) |
Get action taken when front stencil test failed.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilOpSeparate.xml
stencil_op glpp::stencil_test_unit::get_stencil_pass_depth_fail_op | ( | ) |
Get action taken when front stencil passed and depth test failed.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilOpSeparate.xml
stencil_op glpp::stencil_test_unit::get_stencil_pass_depth_pass_op | ( | ) |
Get action taken when both front stencil and depth test passed.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilOpSeparate.xml
stencil_test_unit::mask_type glpp::stencil_test_unit::get_write_mask | ( | ) |
Get the current write mask that is used for writing front-facing polygons.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilMaskSeparate.xml
bool glpp::stencil_test_unit::is_enabled | ( | ) |
Check if stencil testing is enabled.
void glpp::stencil_test_unit::set_compare_func | ( | compare_func | func, |
stencil_test_unit::compare_reference_type | ref, | ||
stencil_test_unit::mask_type | mask | ||
) |
Set front and back function and reference value for stencil testing.
void glpp::stencil_test_unit::set_face_compare_func | ( | face_type | face, |
compare_func | func, | ||
stencil_test_unit::compare_reference_type | ref, | ||
stencil_test_unit::mask_type | mask | ||
) |
Set front and/or back function and reference value for stencil testing.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilFuncSeparate.xml
void glpp::stencil_test_unit::set_face_op | ( | face_type | face, |
stencil_op | stencil_fail, | ||
stencil_op | stencil_pass_depth_fail, | ||
stencil_op | stencil_pass_depth_pass | ||
) |
Set front and/or back stencil test actions.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilOpSeparate.xml
void glpp::stencil_test_unit::set_face_write_mask | ( | face_type | face, |
mask_type | mask | ||
) |
Control the front and/or back writing of individual bits in the stencil planes.
http://www.opengl.org/sdk/docs/man4/xhtml/glStencilMaskSeparate.xml
void glpp::stencil_test_unit::set_op | ( | stencil_op | stencil_fail, |
stencil_op | stencil_pass_depth_fail, | ||
stencil_op | stencil_pass_depth_pass | ||
) |
Set front and back stencil test actions.
void glpp::stencil_test_unit::set_write_mask | ( | mask_type | mask | ) |
Control the front and back writing of individual bits in the stencil planes.