1GLDEPTHRANGE(3G)                [FIXME: manual]               GLDEPTHRANGE(3G)
2
3
4

NAME

6       glDepthRange - specify mapping of depth values from normalized device
7       coordinates to window coordinates
8

C SPECIFICATION

10       void glDepthRange(GLdouble nearVal, GLdouble farVal);
11
12       void glDepthRangef(GLfloat nearVal, GLfloat farVal);
13

PARAMETERS

15       nearVal
16           Specifies the mapping of the near clipping plane to window
17           coordinates. The initial value is 0.
18
19       farVal
20           Specifies the mapping of the far clipping plane to window
21           coordinates. The initial value is 1.
22

DESCRIPTION

24       After clipping and division by w, depth coordinates range from -1 to 1,
25       corresponding to the near and far clipping planes.  glDepthRange
26       specifies a linear mapping of the normalized depth coordinates in this
27       range to window depth coordinates. Regardless of the actual depth
28       buffer implementation, window coordinate depth values are treated as
29       though they range from 0 through 1 (like color components). Thus, the
30       values accepted by glDepthRange are both clamped to this range before
31       they are accepted.
32
33       The setting of (0,1) maps the near plane to 0 and the far plane to 1.
34       With this mapping, the depth buffer range is fully utilized.
35

NOTES

37       It is not necessary that nearVal be less than farVal. Reverse mappings
38       such as nearVal = 1, and farVal = 0 are acceptable.
39
40       The type of the nearVal and farVal parameters was changed from GLclampf
41       to GLfloat for glDepthRangef and from GLclampd to GLdouble for
42       glDepthRange. This change is transparent to user code and is described
43       in detail on the removedTypes() page.
44

ASSOCIATED GETS

46       glGet() with argument GL_DEPTH_RANGE
47

VERSION SUPPORT

49       ┌──────────────┬───────────────────────────────────────────────────────────────────────┐
50       │              │                OpenGL Version                                         
51       ├──────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
52Function      2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5 
53/             │     │     │     │     │     │     │     │     │     │     │     │     │
54Feature       │     │     │     │     │     │     │     │     │     │     │     │     │
55Name          │     │     │     │     │     │     │     │     │     │     │     │     │
56       ├──────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
57glDepthRange  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
58       ├──────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
59glDepthRangef │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
60       └──────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
61

SEE ALSO

63       glDepthFunc(), glPolygonOffset(), glViewport(), removedTypes()
64
66       Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2014
67       Khronos Group. This document is licensed under the SGI Free Software B
68       License. For details, see http://oss.sgi.com/projects/FreeB/.
69
71       Copyright © 1991-2006 Silicon Graphics, Inc.
72       Copyright © 2010-2014 Khronos Group
73
74
75
76[FIXME: source]                   07/13/2018                  GLDEPTHRANGE(3G)
Impressum