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

NAME

6       glInterleavedArrays - simultaneously specify and enable several
7       interleaved arrays
8

C SPECIFICATION

10       void glInterleavedArrays(GLenum format, GLsizei stride,
11                                const GLvoid * pointer);
12

PARAMETERS

14       format
15           Specifies the type of array to enable. Symbolic constants GL_V2F,
16           GL_V3F, GL_C4UB_V2F, GL_C4UB_V3F, GL_C3F_V3F, GL_N3F_V3F,
17           GL_C4F_N3F_V3F, GL_T2F_V3F, GL_T4F_V4F, GL_T2F_C4UB_V3F,
18           GL_T2F_C3F_V3F, GL_T2F_N3F_V3F, GL_T2F_C4F_N3F_V3F, and
19           GL_T4F_C4F_N3F_V4F are accepted.
20
21       stride
22           Specifies the offset in bytes between each aggregate array element.
23

DESCRIPTION

25       glInterleavedArrays lets you specify and enable individual color,
26       normal, texture and vertex arrays whose elements are part of a larger
27       aggregate array element. For some implementations, this is more
28       efficient than specifying the arrays separately.
29
30       If stride is 0, the aggregate elements are stored consecutively.
31       Otherwise, stride bytes occur between the beginning of one aggregate
32       array element and the beginning of the next aggregate array element.
33
34       format serves as a ``key'' describing the extraction of individual
35       arrays from the aggregate array. If format contains a T, then texture
36       coordinates are extracted from the interleaved array. If C is present,
37       color values are extracted. If N is present, normal coordinates are
38       extracted. Vertex coordinates are always extracted.
39
40       The digits 2, 3, and 4 denote how many values are extracted. F
41       indicates that values are extracted as floating-point values. Colors
42       may also be extracted as 4 unsigned bytes if 4UB follows the C. If a
43       color is extracted as 4 unsigned bytes, the vertex array element which
44       follows is located at the first possible floating-point aligned
45       address.
46

NOTES

48       glInterleavedArrays is available only if the GL version is 1.1 or
49       greater.
50
51       If glInterleavedArrays is called while compiling a display list, it is
52       not compiled into the list, and it is executed immediately.
53
54       Execution of glInterleavedArrays is not allowed between the execution
55       of glBegin() and the corresponding execution of glEnd(), but an error
56       may or may not be generated. If no error is generated, the operation is
57       undefined.
58
59       glInterleavedArrays is typically implemented on the client side.
60
61       Vertex array parameters are client-side state and are therefore not
62       saved or restored by glPushAttrib() and glPopAttrib(). Use
63       glPushClientAttrib() and glPopClientAttrib() instead.
64
65       For OpenGL versions 1.3 and greater, or when the ARB_multitexture
66       extension is supported, glInterleavedArrays only updates the texture
67       coordinate array for the client active texture unit. The texture
68       coordinate state for other client texture units is not updated,
69       regardless of whether the client texture unit is enabled or not.
70
71       Secondary color values are not supported in interleaved vertex array
72       formats.
73

ERRORS

75       GL_INVALID_ENUM is generated if format is not an accepted value.
76
77       GL_INVALID_VALUE is generated if stride is negative.
78

SEE ALSO

80       glArrayElement(), glClientActiveTexture(), glColorPointer(),
81       glDrawArrays(), glDrawElements(), glEdgeFlagPointer(),
82       glEnableClientState(), glGetPointerv(), glIndexPointer(),
83       glNormalPointer(), glSecondaryColorPointer(), glTexCoordPointer(),
84       glVertexPointer()
85
87       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
88       under the SGI Free Software B License. For details, see
89       http://oss.sgi.com/projects/FreeB/.
90

AUTHORS

92       opengl.org
93
94
95
96opengl.org                        06/10/2014           GLINTERLEAVEDARRAYS(3G)
Impressum