The glDepthFunc subroutine specifies the function used to compare each incoming pixel z value with the z value present in the depth buffer. The comparison is performed only if depth testing is enabled. The function parameter specifies the conditions under which the pixel will be drawn. Initially, depth testing is disabled.
Parameters function Specifies the depth comparison function.
The glDepthFunc subroutine is called between a call to glBegin and the corresponding call to glEnd . Associated Gets Associated gets for the glDepthFunc subroutine are as follows. OpenGL Overview .