Gjsify LogoGjsify Logo

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

Enumeration Members

ALWAYS: number

Always passes.

EQUAL: number

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

GEQUAL: number

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

GREATER: number

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

LEQUAL: number

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

LESS: number

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

NEVER: number

Never passes.

NOTEQUAL: number

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

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method