From QB64 Wiki
Jump to navigation Jump to search

_glClearDepth: specify the clear value for the depth buffer


SUB _glClearDepth (BYVAL depth AS DOUBLE)
void _glClearDepth(GLdouble depth);
void _glClearDepthf(GLfloat depth);
Specifies the depth value used when the depth buffer is cleared. The initial value is 1.


_glClearDepth specifies the depth value used by _glClear to clear the depth buffer. Values specified by _glClearDepth are clamped to the range [0, 1].


The type of the depth parameter was changed from GLclampf to GLfloat for _glClearDepthf and from GLclampd to GLdouble for _glClearDepth. This change is transparent to user code.

Use With:

_glGet with argument _GL_DEPTH_CLEAR_VALUE

See also

SUB _GL _glClear

Copyright: 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License.
For details, see

Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page