GINO Graphics Suite - GINO v9.0  

gSetDepthMode

Syntax

[C/C++:]
void gSetDepthMode(int mode, float dinit);
[F90:]
subroutine gSetDepthMode(mode, dinit)

integer, intent(in) :: mode
real, intent(in) :: dinit

Arguments

mode
Depth test mode

= GNEVER, Never display output
= GLESSTHAN, Display if depth < value in depth buffer (default)
= GLESSTHANOREQUALTO, Display if depth <= value in depth buffer
= GEQUALTO, Display if depth = value in depth buffer
= GNOTEQUALTO, Display if depth >= value in depth buffer
= GGREATERTHANEQUALTO, Display if depth >= value in depth buffer
= GGREATERTHAN, Display if depth > value in depth buffer
= GALWAYS, Always display output

dinit
Initial depth buffer setting (default = 1.0)

Description

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().

See Also

gSetDepthMode Usage
gSetShadingMode
gSetViewport3D