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

NAME

6       glDrawArrays - render primitives from array data
7

C SPECIFICATION

9       void glDrawArrays(GLenum mode, GLint first, GLsizei count);
10

PARAMETERS

12       mode
13           Specifies what kind of primitives to render. Symbolic constants
14           GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES,
15           GL_LINE_STRIP_ADJACENCY, GL_LINES_ADJACENCY, GL_TRIANGLE_STRIP,
16           GL_TRIANGLE_FAN, GL_TRIANGLES, GL_TRIANGLE_STRIP_ADJACENCY,
17           GL_TRIANGLES_ADJACENCY and GL_PATCHES are accepted.
18
19       first
20           Specifies the starting index in the enabled arrays.
21
22       count
23           Specifies the number of indices to be rendered.
24

DESCRIPTION

26       glDrawArrays specifies multiple geometric primitives with very few
27       subroutine calls. Instead of calling a GL procedure to pass each
28       individual vertex, normal, texture coordinate, edge flag, or color, you
29       can prespecify separate arrays of vertices, normals, and colors and use
30       them to construct a sequence of primitives with a single call to
31       glDrawArrays.
32
33       When glDrawArrays is called, it uses count sequential elements from
34       each enabled array to construct a sequence of geometric primitives,
35       beginning with element first.  mode specifies what kind of primitives
36       are constructed and how the array elements construct those primitives.
37
38       Vertex attributes that are modified by glDrawArrays have an unspecified
39       value after glDrawArrays returns. Attributes that aren't modified
40       remain well defined.
41

NOTES

43       GL_LINE_STRIP_ADJACENCY, GL_LINES_ADJACENCY,
44       GL_TRIANGLE_STRIP_ADJACENCY and GL_TRIANGLES_ADJACENCY are available
45       only if the GL version is 3.2 or greater.
46

ERRORS

48       GL_INVALID_ENUM is generated if mode is not an accepted value.
49
50       GL_INVALID_VALUE is generated if count is negative.
51
52       GL_INVALID_OPERATION is generated if a non-zero buffer object name is
53       bound to an enabled array and the buffer object's data store is
54       currently mapped.
55
56       GL_INVALID_OPERATION is generated if a geometry shader is active and
57       mode is incompatible with the input primitive type of the geometry
58       shader in the currently installed program object.
59

VERSION SUPPORT

61       ┌─────────────┬───────────────────────────────────────────────────────────────────────┐
62       │             │                OpenGL Version                                         
63       ├─────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
64Function     2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5 
65/            │     │     │     │     │     │     │     │     │     │     │     │     │
66Feature      │     │     │     │     │     │     │     │     │     │     │     │     │
67Name         │     │     │     │     │     │     │     │     │     │     │     │     │
68       ├─────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
69glDrawArrays │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
70       └─────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
71

SEE ALSO

73       glDrawArraysInstanced(), glDrawElements(), glDrawRangeElements(),
74
76       Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2014
77       Khronos Group. This document is licensed under the SGI Free Software B
78       License. For details, see http://oss.sgi.com/projects/FreeB/.
79
81       Copyright © 1991-2006 Silicon Graphics, Inc.
82       Copyright © 2010-2014 Khronos Group
83
84
85
86[FIXME: source]                   03/06/2019                  GLDRAWARRAYS(3G)
Impressum