1GLEDGEFLAGPOINTER(3G)            OpenGL Manual           GLEDGEFLAGPOINTER(3G)
2
3
4

NAME

6       glEdgeFlagPointer - define an array of edge flags
7

C SPECIFICATION

9       void glEdgeFlagPointer(GLsizei stride, const GLvoid * pointer);
10

PARAMETERS

12       stride
13           Specifies the byte offset between consecutive edge flags. If stride
14           is 0, the edge flags are understood to be tightly packed in the
15           array. The initial value is 0.
16
17       pointer
18           Specifies a pointer to the first edge flag in the array. The
19           initial value is 0.
20

DESCRIPTION

22       glEdgeFlagPointer specifies the location and data format of an array of
23       boolean edge flags to use when rendering.  stride specifies the byte
24       stride from one edge flag to the next, allowing vertices and attributes
25       to be packed into a single array or stored in separate arrays.
26
27       If a non-zero named buffer object is bound to the GL_ARRAY_BUFFER
28       target (see glBindBuffer()) while an edge flag array is specified,
29       pointer is treated as a byte offset into the buffer object's data
30       store. Also, the buffer object binding (GL_ARRAY_BUFFER_BINDING) is
31       saved as edge flag vertex array client-side state
32       (GL_EDGE_FLAG_ARRAY_BUFFER_BINDING).
33
34       When an edge flag array is specified, stride and pointer are saved as
35       client-side state, in addition to the current vertex array buffer
36       object binding.
37
38       To enable and disable the edge flag array, call glEnableClientState()
39       and glDisableClientState() with the argument GL_EDGE_FLAG_ARRAY. If
40       enabled, the edge flag array is used when glDrawArrays(),
41       glMultiDrawArrays(), glDrawElements(), glMultiDrawElements(),
42       glDrawRangeElements(), or glArrayElement() is called.
43

NOTES

45       glEdgeFlagPointer is available only if the GL version is 1.1 or
46       greater.
47
48       Edge flags are not supported for interleaved vertex array formats (see
49       glInterleavedArrays()).
50
51       The edge flag array is initially disabled and isn't accessed when
52       glArrayElement(), glDrawElements(), glDrawRangeElements(),
53       glDrawArrays(), glMultiDrawArrays(), or glMultiDrawElements() is
54       called.
55
56       Execution of glEdgeFlagPointer is not allowed between the execution of
57       glBegin() and the corresponding execution of glEnd(), but an error may
58       or may not be generated. If no error is generated, the operation is
59       undefined.
60
61       glEdgeFlagPointer is typically implemented on the client side.
62
63       Edge flag array parameters are client-side state and are therefore not
64       saved or restored by glPushAttrib() and glPopAttrib(). Use
65       glPushClientAttrib() and glPopClientAttrib() instead.
66

ERRORS

68       GL_INVALID_ENUM is generated if stride is negative.
69

ASSOCIATED GETS

71       glIsEnabled() with argument GL_EDGE_FLAG_ARRAY
72
73       glGet() with argument GL_EDGE_FLAG_ARRAY_STRIDE
74
75       glGet() with argument GL_EDGE_FLAG_ARRAY_BUFFER_BINDING
76
77       glGet() with argument GL_ARRAY_BUFFER_BINDING
78
79       glGetPointerv() with argument GL_EDGE_FLAG_ARRAY_POINTER
80

SEE ALSO

82       glArrayElement(), glBindBuffer(), glColorPointer(),
83       glDisableClientState(), glDrawArrays(), glDrawElements(),
84       glDrawRangeElements(), glEdgeFlag(), glEnableClientState(),
85       glFogCoordPointer(), glIndexPointer(), glInterleavedArrays(),
86       glMultiDrawArrays(), glMultiDrawElements(), glNormalPointer(),
87       glPopClientAttrib(), glPushClientAttrib(), glSecondaryColorPointer(),
88       glTexCoordPointer(), glVertexAttribPointer(), glVertexPointer()
89
91       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
92       under the SGI Free Software B License. For details, see
93       http://oss.sgi.com/projects/FreeB/.
94

AUTHORS

96       opengl.org
97
98
99
100opengl.org                        06/10/2014             GLEDGEFLAGPOINTER(3G)
Impressum