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

NAME

6       glDrawRangeElements - render primitives from array data
7

C SPECIFICATION

9       void glDrawRangeElements(GLenum mode, GLuint start, GLuint end,
10                                GLsizei count, GLenum type,
11                                const GLvoid * indices);
12

PARAMETERS

14       mode
15           Specifies what kind of primitives to render. Symbolic constants
16           GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES,
17           GL_LINE_STRIP_ADJACENCY, GL_LINES_ADJACENCY, GL_TRIANGLE_STRIP,
18           GL_TRIANGLE_FAN, GL_TRIANGLES, GL_TRIANGLE_STRIP_ADJACENCY,
19           GL_TRIANGLES_ADJACENCY and GL_PATCHES are accepted.
20
21       start
22           Specifies the minimum array index contained in indices.
23
24       end
25           Specifies the maximum array index contained in indices.
26
27       count
28           Specifies the number of elements to be rendered.
29
30       type
31           Specifies the type of the values in indices. Must be one of
32           GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT.
33
34       indices
35           Specifies a pointer to the location where the indices are stored.
36

DESCRIPTION

38       glDrawRangeElements is a restricted form of glDrawElements().  mode,
39       start, end, and count match the corresponding arguments to
40       glDrawElements(), with the additional constraint that all values in the
41       arrays count must lie between start and end, inclusive.
42
43       Implementations denote recommended maximum amounts of vertex and index
44       data, which may be queried by calling glGet() with argument
45       GL_MAX_ELEMENTS_VERTICES and GL_MAX_ELEMENTS_INDICES. If end - start +
46       1 is greater than the value of GL_MAX_ELEMENTS_VERTICES, or if count is
47       greater than the value of GL_MAX_ELEMENTS_INDICES, then the call may
48       operate at reduced performance. There is no requirement that all
49       vertices in the range start end be referenced. However, the
50       implementation may partially process unused vertices, reducing
51       performance from what could be achieved with an optimal index set.
52
53       When glDrawRangeElements is called, it uses count sequential elements
54       from an enabled array, starting at start to construct a sequence of
55       geometric primitives.  mode specifies what kind of primitives are
56       constructed, and how the array elements construct these primitives. If
57       more than one array is enabled, each is used.
58
59       Vertex attributes that are modified by glDrawRangeElements have an
60       unspecified value after glDrawRangeElements returns. Attributes that
61       aren't modified maintain their previous values.
62

NOTES

64       GL_LINE_STRIP_ADJACENCY, GL_LINES_ADJACENCY,
65       GL_TRIANGLE_STRIP_ADJACENCY and GL_TRIANGLES_ADJACENCY are available
66       only if the GL version is 3.2 or greater.
67

ERRORS

69       It is an error for indices to lie outside the range start end, but
70       implementations may not check for this situation. Such indices cause
71       implementation-dependent behavior.
72
73       GL_INVALID_ENUM is generated if mode is not an accepted value.
74
75       GL_INVALID_VALUE is generated if count is negative.
76
77       GL_INVALID_VALUE is generated if end < start.
78
79       GL_INVALID_OPERATION is generated if a geometry shader is active and
80       mode is incompatible with the input primitive type of the geometry
81       shader in the currently installed program object.
82
83       GL_INVALID_OPERATION is generated if a non-zero buffer object name is
84       bound to an enabled array or the element array and the buffer object's
85       data store is currently mapped.
86

ASSOCIATED GETS

88       glGet() with argument GL_MAX_ELEMENTS_VERTICES
89
90       glGet() with argument GL_MAX_ELEMENTS_INDICES
91

SEE ALSO

93       glDrawArrays(), glDrawElements(), glDrawElementsBaseVertex()
94
96       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
97       under the SGI Free Software B License. For details, see
98       http://oss.sgi.com/projects/FreeB/.
99

AUTHORS

101       opengl.org
102
103
104
105opengl.org                        06/10/2014           GLDRAWRANGEELEMENTS(3G)
Impressum