5
.ds Dt 24 September 1999
9
.ds Xs 31502 6 interleavedarrays.gl
10
.TH GLINTERLEAVEDARRAYS 3G
12
.B "glInterleavedArrays
13
\- simultaneously specify and enable several interleaved arrays
16
void \f3glInterleavedArrays\fP(
19
.ta \w'\f3void \fPglInterleavedArrays( 'u
21
const GLvoid \fI*pointer\fP )
25
.TP \w'\fIpointer\fP\ \ 'u
27
Specifies the type of array to enable. Symbolic constants
34
\%\f3GL_C4F_N3F_V3F\fP,
37
\%\f3GL_T2F_C4UB_V3F\fP,
38
\%\f3GL_T2F_C3F_V3F\fP,
39
\%\f3GL_T2F_N3F_V3F\fP,
40
\%\f3GL_T2F_C4F_N3F_V3F\fP,
42
\%\f3GL_T4F_C4F_N3F_V4F\fP
46
Specifies the offset in bytes between each aggregate array element.
48
\%\f3glInterleavedArrays\fP lets you specify and enable individual color,
51
arrays whose elements are part of a larger aggregate array element.
52
For some implementations, this is more efficient than specifying the arrays
55
If \f2stride\fP is 0, the aggregate elements are stored consecutively.
56
Otherwise, \f2stride\fP bytes occur between the beginning of one
57
aggregate array element and the beginning of the next aggregate array
60
\f2format\fP serves as a ``key''
61
describing the extraction of individual arrays from the aggregate array.
62
If \f2format\fP contains a T, then texture coordinates are
63
extracted from the interleaved array. If C is present, color values
64
are extracted. If N is present, normal coordinates are extracted.
65
Vertex coordinates are always extracted.
67
The digits 2, 3, and 4 denote how many values are extracted.
68
F indicates that values are extracted as floating-point values.
69
Colors may also be extracted as 4 unsigned bytes if 4UB follows the
70
C. If a color is extracted as 4 unsigned bytes, the vertex
71
array element which follows is located at the first possible
72
floating-point aligned address.
74
\%\f3glInterleavedArrays\fP is available only if the GL version is 1.1 or greater.
76
If \%\f3glInterleavedArrays\fP is called while compiling a display list, it is not
77
compiled into the list, and it is executed immediately.
79
Execution of \%\f3glInterleavedArrays\fP is not allowed between the execution of
80
\%\f3glBegin\fP and the corresponding execution of \%\f3glEnd\fP,
81
but an error may or may not be generated. If no error is generated,
82
the operation is undefined.
84
\%\f3glInterleavedArrays\fP is typically implemented on the client side.
86
Vertex array parameters are client-side state and are therefore not
87
saved or restored by \%\f3glPushAttrib\fP and \%\f3glPopAttrib\fP.
88
Use \%\f3glPushClientAttrib\fP and \%\f3glPopClientAttrib\fP instead.
90
When the \%\f3GL_ARB_multitexture\fP extension is supported, \%\f3glInterleavedArrays\fP
91
only updates the texture coordinate array for the active active texture
92
unit. The texture coordinate state for other client texture units is not
93
update, regardless if they are enabled or not.
95
\%\f3GL_INVALID_ENUM\fP is generated if \f2format\fP is not an accepted value.
97
\%\f3GL_INVALID_VALUE\fP is generated if \f2stride\fP is negative.
99
\%\f3glArrayElement(3G)\fP,
100
\%\f3glClientActiveTextureARB(3G)\fP,
101
\%\f3glColorPointer(3G)\fP,
102
\%\f3glDrawArrays(3G)\fP,
103
\%\f3glDrawElements(3G)\fP,
104
\%\f3glEdgeFlagPointer(3G)\fP,
105
\%\f3glEnableClientState(3G)\fP,
106
\%\f3glGetPointer(3G)\fP,
107
\%\f3glIndexPointer(3G)\fP,
108
\%\f3glNormalPointer(3G)\fP,
109
\%\f3glTexCoordPointer(3G)\fP,
110
\%\f3glVertexPointer(3G)\fP