Cogl.DepthState – doc Reference Manual
Packages
doc
Cogl
DepthState
get_range
get_test_enabled
get_test_function
get_write_enabled
init
set_range
set_test_enabled
set_test_function
set_write_enabled
DepthState
Object Hierarchy:
Description:
public
struct
DepthState
Namespace:
Cogl
Package:
doc
Content:
Methods:
public
void
get_range
(
float
near_val,
float
far_val)
Gets the current range to which normalized depth values are mapped before writing to the depth buffer.
public
Bool
get_test_enabled
()
Gets the current depth test enabled state as previously set by
set_test_enabled
.
public
DepthTestFunction
get_test_function
()
Gets the current depth test enable state as previously set via
set_test_enabled
.
public
Bool
get_write_enabled
()
Gets the depth writing enable state as set by the corresponding
set_write_enabled
.
public
void
init
()
Initializes the members of
this
to their default values.
public
void
set_range
(
float
near_val,
float
far_val)
Sets the range to map depth values in normalized device coordinates to before writing out to a depth buffer.
public
void
set_test_enabled
(
Bool
enable)
Enables or disables depth testing according to the value of
enable
.
public
void
set_test_function
(
DepthTestFunction
function)
Sets the
DepthTestFunction
used to compare the depth value of an incoming fragment against the corresponding value in the current depth buffer.
public
void
set_write_enabled
(
Bool
enable)
Enables or disables depth buffer writing according to the value of
enable
.