GL++
0.1
OpenGL API C++ Wrapper
|
Unit that controls depth buffer testing. More...
#include <depth_test_unit.hpp>
Public Member Functions | |
void | enable () |
Enable depth buffer testing. | |
void | disable () |
Disable depth buffer testing. | |
bool | is_enabled () |
Check if depth buffer testing is enabled. | |
void | enable_write () |
Enable updating depth buffer after testing. | |
void | disable_write () |
Disable updating depth buffer after testing. | |
bool | is_write_enabled () |
Check if depth buffer is permitted to be updated. | |
void | set_range (GLdouble znear, GLdouble zfar) |
Specify mapping of depth values from normalized device coordinates to window coordinates. | |
void | get_range (GLdouble &znear, GLdouble &zfar) |
Get mapping of depth values from normalized device coordinates to window coordinates. | |
void | set_clear_value (GLdouble depth) |
Specify the clear value for the depth buffer. | |
GLdouble | get_clear_value () |
Get the clear value for the depth buffer. | |
void | set_compare_func (compare_func func) |
Specify the function used for depth buffer comparisons. | |
compare_func | get_compare_func () |
Get the function used for depth buffer comparisons. | |
void | set_polygon_offset (GLfloat factor, GLfloat units) |
Set the scale and units used to calculate depth values. | |
void | get_polygon_offset (GLfloat &factor, GLfloat &units) |
Get the scale and units used to calculate depth values. | |
void | enable_fill_polygon_offset () |
Enable depth offset for filled fragments. | |
void | disable_fill_polygon_offset () |
Disable depth offset for filled fragments. | |
bool | is_fill_polygon_offset_enabled () |
Check if depth offset is enabled for filled fragments. | |
void | enable_point_polygon_offset () |
Enable depth offset for point fragments. | |
void | disable_point_polygon_offset () |
Disable depth offset for point fragments. | |
bool | is_point_polygon_offset_enabled () |
Check if depth offset is enabled for point fragments. | |
void | enable_line_polygon_offset () |
Enable depth offset for line fragments. | |
void | disable_line_polygon_offset () |
Disable depth offset for line fragments. | |
bool | is_line_polygon_offset_enabled () |
Check if depth offset is enabled for line fragments. | |
Public Member Functions inherited from glpp::noncopyable | |
noncopyable (noncopyable &) | |
noncopyable & | operator= (noncopyable &) |
Protected Member Functions | |
depth_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 depth buffer testing.
void glpp::depth_test_unit::disable | ( | ) |
Disable depth buffer testing.
void glpp::depth_test_unit::disable_fill_polygon_offset | ( | ) |
Disable depth offset for filled fragments.
http://www.opengl.org/sdk/docs/man4/xhtml/glPolygonOffset.xml
void glpp::depth_test_unit::disable_line_polygon_offset | ( | ) |
Disable depth offset for line fragments.
http://www.opengl.org/sdk/docs/man4/xhtml/glPolygonOffset.xml
void glpp::depth_test_unit::disable_point_polygon_offset | ( | ) |
Disable depth offset for point fragments.
http://www.opengl.org/sdk/docs/man4/xhtml/glPolygonOffset.xml
void glpp::depth_test_unit::disable_write | ( | ) |
Disable updating depth buffer after testing.
void glpp::depth_test_unit::enable | ( | ) |
Enable depth buffer testing.
void glpp::depth_test_unit::enable_fill_polygon_offset | ( | ) |
Enable depth offset for filled fragments.
http://www.opengl.org/sdk/docs/man4/xhtml/glPolygonOffset.xml
void glpp::depth_test_unit::enable_line_polygon_offset | ( | ) |
Enable depth offset for line fragments.
http://www.opengl.org/sdk/docs/man4/xhtml/glPolygonOffset.xml
void glpp::depth_test_unit::enable_point_polygon_offset | ( | ) |
Enable depth offset for point fragments.
http://www.opengl.org/sdk/docs/man4/xhtml/glPolygonOffset.xml
void glpp::depth_test_unit::enable_write | ( | ) |
Enable updating depth buffer after testing.
GLdouble glpp::depth_test_unit::get_clear_value | ( | ) |
Get the clear value for the depth buffer.
http://www.opengl.org/sdk/docs/man4/xhtml/glClearDepth.xml
compare_func glpp::depth_test_unit::get_compare_func | ( | ) |
Get the function used for depth buffer comparisons.
www.opengl.org/sdk/docs/man4/xhtml/glDepthFunc.xml
void glpp::depth_test_unit::get_polygon_offset | ( | GLfloat & | factor, |
GLfloat & | units | ||
) |
Get the scale and units used to calculate depth values.
http://www.opengl.org/sdk/docs/man4/xhtml/glPolygonOffset.xml
void glpp::depth_test_unit::get_range | ( | GLdouble & | znear, |
GLdouble & | zfar | ||
) |
Get mapping of depth values from normalized device coordinates to window coordinates.
http://www.opengl.org/sdk/docs/man4/xhtml/glDepthRange.xml
bool glpp::depth_test_unit::is_enabled | ( | ) |
Check if depth buffer testing is enabled.
bool glpp::depth_test_unit::is_fill_polygon_offset_enabled | ( | ) |
Check if depth offset is enabled for filled fragments.
http://www.opengl.org/sdk/docs/man4/xhtml/glPolygonOffset.xml
bool glpp::depth_test_unit::is_line_polygon_offset_enabled | ( | ) |
Check if depth offset is enabled for line fragments.
http://www.opengl.org/sdk/docs/man4/xhtml/glPolygonOffset.xml
bool glpp::depth_test_unit::is_point_polygon_offset_enabled | ( | ) |
Check if depth offset is enabled for point fragments.
http://www.opengl.org/sdk/docs/man4/xhtml/glPolygonOffset.xml
bool glpp::depth_test_unit::is_write_enabled | ( | ) |
Check if depth buffer is permitted to be updated.
void glpp::depth_test_unit::set_clear_value | ( | GLdouble | depth | ) |
Specify the clear value for the depth buffer.
void glpp::depth_test_unit::set_compare_func | ( | compare_func | func | ) |
Specify the function used for depth buffer comparisons.
www.opengl.org/sdk/docs/man4/xhtml/glDepthFunc.xml
void glpp::depth_test_unit::set_polygon_offset | ( | GLfloat | factor, |
GLfloat | units | ||
) |
Set the scale and units used to calculate depth values.
http://www.opengl.org/sdk/docs/man4/xhtml/glPolygonOffset.xml
void glpp::depth_test_unit::set_range | ( | GLdouble | znear, |
GLdouble | zfar | ||
) |
Specify mapping of depth values from normalized device coordinates to window coordinates.