Cogl.DepthState.prototype.set_test_enabled
function set_test_enabled(enable: Cogl.Bool): void {
// Gjs wrapper for cogl_depth_state_set_test_enabled()
}
Enables or disables depth testing according to the value of enable.
If depth testing is enable then the Cogl.DepthTestFunction set using Cogl.DepthState.prototype.set_test_function us used to evaluate the depth value of incoming fragments against the corresponding value stored in the current depth buffer, and if the test passes then the fragments depth value is used to update the depth buffer. (unless you have disabled depth writing via Cogl.DepthState.prototype.set_write_enabled)
By default depth testing is disabled.
NB: this won't directly affect the state of the GPU. You have to then set the state on a Cogl.Pipeline using Cogl.Pipeline.prototype.set_depth_state
Since 2.0
- enable
The enable state you want