set_test_function


Description:

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.

By default the depth test function is cogl_depth_test_function_less

NB: this won't directly affect the state of the GPU. You have to then set the state on a Pipeline using set_depth_state

Parameters:

this

A DepthState struct

function

The DepthTestFunction to set