Struct

CoglDepthState

Description [src]

struct CoglDepthState {
  /* No available fields */
}

Functions for describing the depth testing state of your GPU.

Instance methods

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.