All Classes |Grouped Classes |Index

Class CL_BufferControl

Container class for states related to reading, writing and tests performed on buffers. More...

Derived from:

None

Derived by:

None

Group:

Display (Display)

#include <ClanLib/display.h>

Class Members:

Construction:

CL_BufferControl

Constructs a buffer control description object.


Attributes:

is_stencil_test_enabled

Returns true if stencil test is enabled.

get_stencil_compare_func_front

Returns the stencil compare function for front facing polygons, points, lines and bitmaps.

get_stencil_compare_func_back

Returns the stencil compare function for back facing polygons.

get_stencil_compare_reference_front

Returns the stencil compare reference for front facing polygons, points, lines and bitmaps.

get_stencil_compare_reference_back

Returns the stencil compare reference for back facing polygons.

get_stencil_fail_front

Returns the stencil operation to perform when test fails for front facing polygons, points, lines and bitmaps.

get_stencil_fail_back

Returns the stencil operation to perform when test fails for back facing polygons.

get_stencil_pass_depth_pass_front

Returns the stencil operation to perform when test passes for front facing polygons, points, lines and bitmaps.

get_stencil_pass_depth_pass_back

Returns the stencil operation to perform when test passes for back facing polygons.

get_stencil_pass_depth_fail_front

Returns the stencil operation to perform when depth test passes but stencil test fails for front facing polygons, points, lines and bitmaps.

get_stencil_pass_depth_fail_back

Returns the stencil operation to perform when depth test passes but stencil test fails for back facing polygons.

get_stencil_compare_mask_front

Returns the stencil comparation mask for front facing polygons, points, lines and bitmaps.

get_stencil_compare_mask_back

Returns the stencil comparation mask for back facing polygons.

get_stencil_write_mask_front

Returns the stencil write mask for front facing polygons, points, lines and bitmaps.

get_stencil_write_mask_back

Returns the stencil write mask for back facing polygons.

is_depth_test_enabled

Returns true if the depth test is enabled.

is_depth_write_enabled

Returns true if depth writing is enabled.

get_depth_compare_function

Returns the depth test function.

is_color_write_enabled

Retrieves which color components are write enabled.

get_draw_buffer

Returns the used draw buffer.

is_logic_op_enabled

Returns true if logic operations are enabled.

get_logic_op

Returns the set logic operations.


Operations:

enable_stencil_test

Enables/disables stencil testing.

set_stencil_compare_func

Set stencil compare function.

set_stencil_compare_reference

Set stencil compare reference values.

set_stencil_write_mask

Set stencil write masks.

set_stencil_fail

Set stencil failed test operations.

set_stencil_pass_depth_pass

Set stencil passed test operations.

set_stencil_pass_depth_fail

Set stencil passed depth test but failed stencil test operations.

set_stencil_compare_mask

Set stencil comparation masks.

enable_depth_test

Enables/disables depth testing.

enable_depth_write

Enables/disables depth writing.

set_depth_compare_function

Set depth test function.

enable_color_write

Enable/disable writing to the color buffer.

set_draw_buffer

Set used draw buffer.

enable_logic_op

Enable/disable logic op.

set_logic_op

Set logic operation.