Documentation de Gambas - /comp/gb.opengl.glsl/gl/cleardepth

/comp/gb.opengl.glsl/gl/cleardepth

# Gl.ClearDepth (gb.opengl)

Static Sub ClearDepth ( Depth As Float )

Specify the clear value for the depth buffer.

### Parameters

depth

  Specifies the depth value used when the depth buffer is cleared. The initial value is 1.

### Description

Gl.ClearDepth specifies the depth value used by Gl.Clear to clear the depth buffer. Values specified by Gl.ClearDepth are clamped to the range 0 1 .

### Associated Gets

Gl.Get with argument Gl.DEPTH_CLEAR_VALUE

### See also

- Gl.Clear

Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB.
➡ See original documentation