1GLCLEARDEPTH(3G) [FIXME: manual] GLCLEARDEPTH(3G)
2
3
4
6 glClearDepth - specify the clear value for the depth buffer
7
9 void glClearDepth(GLdouble depth);
10
11 void glClearDepthf(GLfloat depth);
12
14 depth
15 Specifies the depth value used when the depth buffer is cleared.
16 The initial value is 1.
17
19 glClearDepth specifies the depth value used by glClear() to clear the
20 depth buffer. Values specified by glClearDepth are clamped to the range
21 0 1.
22
24 The type of the depth parameter was changed from GLclampf to GLfloat
25 for glClearDepthf and from GLclampd to GLdouble for glClearDepth. This
26 change is transparent to user code and is described in detail on the
27 removedTypes() page.
28
30 glGet() with argument GL_DEPTH_CLEAR_VALUE
31
33 ┌──────────────┬───────────────────────────────────────────────────────────────────────┐
34 │ │ OpenGL Version │
35 ├──────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
36 │Function │ 2.0 │ 2.1 │ 3.0 │ 3.1 │ 3.2 │ 3.3 │ 4.0 │ 4.1 │ 4.2 │ 4.3 │ 4.4 │ 4.5 │
37 │/ │ │ │ │ │ │ │ │ │ │ │ │ │
38 │Feature │ │ │ │ │ │ │ │ │ │ │ │ │
39 │Name │ │ │ │ │ │ │ │ │ │ │ │ │
40 ├──────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
41 │glClearDepth │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │
42 ├──────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
43 │glClearDepthf │ - │ - │ - │ - │ - │ - │ - │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │
44 └──────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
45
47 glClear(), removedTypes()
48
50 Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2014
51 Khronos Group. This document is licensed under the SGI Free Software B
52 License. For details, see http://oss.sgi.com/projects/FreeB/.
53
55 Copyright © 1991-2006 Silicon Graphics, Inc.
56 Copyright © 2010-2014 Khronos Group
57
58
59
60[FIXME: source] 03/06/2019 GLCLEARDEPTH(3G)