GL++  0.1
OpenGL API C++ Wrapper
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Groups Pages
glpp::depth_test_unit Struct Reference

Unit that controls depth buffer testing. More...

#include <depth_test_unit.hpp>

Inheritance diagram for glpp::depth_test_unit:
glpp::noncopyable

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 &)
noncopyableoperator= (noncopyable &)

Protected Member Functions

 depth_test_unit (context &ctx)
 Construction is permitted only by glpp::context.

Protected Attributes

contextm_ctx
 Reference to context that this is unit is part of.

Friends

class context
 All units are friend of context.

Detailed Description

Unit that controls depth buffer testing.

Remarks
non-copyable, non-inheritable

Member Function Documentation

void glpp::depth_test_unit::disable ( )
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.

http://www.opengl.org/sdk/docs/man4/xhtml/glDepthMask.xml

void glpp::depth_test_unit::enable ( )
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.

http://www.opengl.org/sdk/docs/man4/xhtml/glDepthMask.xml

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

See Also
set_clear_value
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

See Also
set_compare_func
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

See Also
set_polygon_offset
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

See Also
set_range
bool glpp::depth_test_unit::is_enabled ( )

Check if depth buffer testing is enabled.

http://www.opengl.org/sdk/docs/man4/xhtml/glDepthFunc.xml

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.

http://www.opengl.org/sdk/docs/man4/xhtml/glDepthMask.xml

void glpp::depth_test_unit::set_clear_value ( GLdouble  depth)

Specify the clear value for the depth buffer.

http://www.opengl.org/sdk/docs/man4/xhtml/glClearDepth.xml

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.

http://www.opengl.org/sdk/docs/man4/xhtml/glDepthRange.xml


The documentation for this struct was generated from the following files: