### Struct

# Cogl DepthState

#### Description [src]

    struct CoglDepthState {
      /* No available fields */
    }

Functions for describing the depth testing state of your GPU.

#### Instance methods

###### cogl_depth_state_get_range

Gets the current range to which normalized depth values are mapped before writing to the depth buffer. This corresponds to the range set with cogl_depth_state_set_range().

###### cogl_depth_state_get_test_enabled

Gets the current depth test enabled state as previously set by cogl_depth_state_set_test_enabled().

###### cogl_depth_state_get_test_function

Gets the current depth test enable state as previously set via cogl_depth_state_set_test_enabled().

###### cogl_depth_state_get_write_enabled

Gets the depth writing enable state as set by the corresponding cogl_depth_state_set_write_enabled().

###### cogl_depth_state_init

Initializes the members of `state` to their default values.

###### cogl_depth_state_set_range

Sets the range to map depth values in normalized device coordinates to before writing out to a depth buffer.

###### cogl_depth_state_set_test_enabled

Enables or disables depth testing according to the value of `enable`.

###### cogl_depth_state_set_test_function

Sets the `CoglDepthTestFunction` used to compare the depth value of an incoming fragment against the corresponding value in the current depth buffer.

###### cogl_depth_state_set_write_enabled

Enables or disables depth buffer writing according to the value of `enable`. Normally when depth testing is enabled and the comparison between a fragment’s depth value and the corresponding depth buffer value passes then the fragment’s depth is written to the depth buffer unless writing is disabled here.