The arguments to the routine gSetDepthMode() control the operation of the depth buffer which take effect when a flat or smooth shading mode is set in the next call to gSetShadingMode().
The setting of mode sets the test that is applied to each point that is to be displayed against the value in the depth buffer.
The depth buffer is initialized to the value in dinit when the display area is next cleared with gNewDrawing().