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

NAME

6       glPolygonOffset - set the scale and units used to calculate depth
7       values
8

C SPECIFICATION

10       void glPolygonOffset(GLfloat factor, GLfloat units);
11

PARAMETERS

13       factor
14           Specifies a scale factor that is used to create a variable depth
15           offset for each polygon. The initial value is 0.
16
17       units
18           Is multiplied by an implementation-specific value to create a
19           constant depth offset. The initial value is 0.
20

DESCRIPTION

22       When GL_POLYGON_OFFSET_FILL, GL_POLYGON_OFFSET_LINE, or
23       GL_POLYGON_OFFSET_POINT is enabled, each fragment's depth value will be
24       offset after it is interpolated from the depth values of the
25       appropriate vertices. The value of the offset is factor × DZ + r ×
26       units, where DZ is a measurement of the change in depth relative to the
27       screen area of the polygon, and r is the smallest value that is
28       guaranteed to produce a resolvable offset for a given implementation.
29       The offset is added before the depth test is performed and before the
30       value is written into the depth buffer.
31
32       glPolygonOffset is useful for rendering hidden-line images, for
33       applying decals to surfaces, and for rendering solids with highlighted
34       edges.
35

ASSOCIATED GETS

37       glIsEnabled() with argument GL_POLYGON_OFFSET_FILL,
38       GL_POLYGON_OFFSET_LINE, or GL_POLYGON_OFFSET_POINT.
39
40       glGet() with argument GL_POLYGON_OFFSET_FACTOR or
41       GL_POLYGON_OFFSET_UNITS.
42

VERSION SUPPORT

44       ┌────────────────┬───────────────────────────────────────────────────────────────────────┐
45       │                │                OpenGL Version                                         
46       ├────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
47Function        2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5 
48/               │     │     │     │     │     │     │     │     │     │     │     │     │
49Feature         │     │     │     │     │     │     │     │     │     │     │     │     │
50Name            │     │     │     │     │     │     │     │     │     │     │     │     │
51       ├────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
52glPolygonOffset │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
53       └────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
54

SEE ALSO

56       glDepthFunc(), glEnable(), glGet(), glIsEnabled()
57
59       Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2014
60       Khronos Group. This document is licensed under the SGI Free Software B
61       License. For details, see http://oss.sgi.com/projects/FreeB/.
62
64       Copyright © 1991-2006 Silicon Graphics, Inc.
65       Copyright © 2010-2014 Khronos Group
66
67
68
69[FIXME: source]                   03/06/2019               GLPOLYGONOFFSET(3G)
Impressum