> ## Name

> ZFunc - 3D API Z func

> ## Usage

> ZFunc = int(func)

> ## Valid Enumerants

> func: Never, Less, LEqual, LessEqual, Equal, Greater, NotEqual, GEqual, GreaterEqual, Always

> ## Description

> Specify the function used for depth buffer comparisons. See the OpenGL glDepthFunc manual page for details. See the D3DRS_ZFUNC render state description for DirectX 9.

> The standard reset callback sets the ZFunc state to int(Less).

> ## Opengl Functionality Requirements

> OpenGL 1.0

> ## Direct3D Functionality Requirements

> DirectX 9

> ## See Also

> ClearDepth, DepthBias, DepthBounds, DepthBoundsEnable, DepthClampEnable, DepthTestEnable, DepthFunc, DepthMask, DepthRange, DepthTestEnable, SlopScaleDepthBias, ZEnable, ZWriteEnable