Enumeration (GI Enum)

Cogl-51CoglDepthTestFunction

When using depth testing one of these functions is used to compare the depth of an incoming fragment against the depth value currently stored in the depth buffer. The function is changed using cogl_depth_state_set_test_function().

The test is only done when depth testing is explicitly enabled. (See cogl_depth_state_set_test_enabled())

Index
ALWAYS: 519

Always passes.

EQUAL: 514

Passes if the fragment's depth value is equal to the value currently in the depth buffer.

GEQUAL: 518

Passes if the fragment's depth value greater than or equal to the value currently in the depth buffer.

GREATER: 516

Passes if the fragment's depth value is greater than the value currently in the depth buffer.

LEQUAL: 515

Passes if the fragment's depth value is less or equal to the value currently in the depth buffer.

LESS: 513

Passes if the fragment's depth value is less than the value currently in the depth buffer.

NEVER: 512

Never passes.

NOTEQUAL: 517

Passes if the fragment's depth value is not equal to the value currently in the depth buffer.

Variables

$gtype