<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
<html
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:mml="http://www.w3.org/1998/Math/MathML"
><head><title>glInterleavedArrays</title><link rel="stylesheet" href="style.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.59.1"/><link rel="home" href="index.xml" title="PyOpenGL 2.0.1.07 Man Pages"/><link rel="up" href="reference-GL.xml" title="GL"/><link rel="previous" href="glInitNames.3G.xml" title="glInitNames"/><link rel="next" href="glIsEnabled.3G.xml" title="glIsEnabled"/></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">glInterleavedArrays</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="glInitNames.3G.xml">Prev</a> </td><th width="60%" align="center">GL</th><td width="20%" align="right"> <a accesskey="n" href="glIsEnabled.3G.xml">Next</a></td></tr></table><hr/></div><div class="refentry" lang="en"><a name="glInterleavedArrays.3G"/><div class="titlepage"/><div class="refnamediv"><a name="glInterleavedArrays.3G-name"/><h2>Name</h2><p>glInterleavedArrays &#8212; simultaneously specify and enable several interleaved arrays</p></div><div class="refsynopsisdiv"><a name="glInterleavedArrays.3G-c_spec"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>void <tt>glInterleavedArrays</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLenum <i><tt>format</tt></i>, GLsizei <i><tt>stride</tt></i>, const GLvoid *<i><tt>pointer</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="glInterleavedArrays.3G-python_spec"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>glInterleavedArrays</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>format</tt></i>, <i><tt>stride</tt></i>, <i><tt>pointer</tt></i>) &#8594; <tt>None</tt></code></td></tr></table></div><div class="refsect1" lang="en"><a name="glInterleavedArrays.3G-parameters"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>format</tt></i></span></dt><dd>
						Specifies the type of array to enable. Symbolic constants <tt>GL_V2F</tt>,
						<tt>GL_V3F</tt>, <tt>GL_C4UB_V2F</tt>, <tt>GL_C4UB_V3F</tt>,
						<tt>GL_C3F_V3F</tt>, <tt>GL_N3F_V3F</tt>, <tt>GL_C4F_N3F_V3F</tt>,
						<tt>GL_T2F_V3F</tt>, <tt>GL_T4F_V4F</tt>, <tt>GL_T2F_C4UB_V3F</tt>,
						<tt>GL_T2F_C3F_V3F</tt>, <tt>GL_T2F_N3F_V3F</tt>,
						<tt>GL_T2F_C4F_N3F_V3F</tt>, and <tt>GL_T4F_C4F_N3F_V4F</tt> are accepted.
					</dd><dt><span class="term"><i><tt>stride</tt></i></span></dt><dd>
						Specifies the offset in bytes between each aggregate array element.
					</dd></dl></div></div><div class="refsect1" lang="en"><a name="glInterleavedArrays.3G-description"/><h2>Description</h2><p>
			<tt>glInterleavedArrays</tt> lets you specify and enable individual color, normal, texture and vertex
			arrays whose elements are part of a larger aggregate array element. For some implementations, this is more efficient
			than specifying the arrays separately.
		</p><p>
			If <i><tt>stride</tt></i> is 0, the aggregate elements are stored consecutively. Otherwise,
			<i><tt>stride</tt></i> bytes occur between the beginning of one aggregate array element and the beginning of the
			next aggregate array element.
		</p><p>
			<i><tt>format</tt></i> serves as a ``key'' describing the extraction of individual arrays from the aggregate
			array. If <i><tt>format</tt></i> contains a T, then texture coordinates are extracted from the interleaved
			array. If C is present, color values are extracted. If N is present, normal coordinates are extracted. Vertex
			coordinates are always extracted.
		</p><p>
			The digits 2, 3, and 4 denote how many values are extracted. F indicates that values are extracted as floating-point
			values. Colors may also be extracted as 4 unsigned bytes if 4UB follows the C. If a color is extracted as 4 unsigned
			bytes, the vertex array element which follows is located at the first possible floating-point aligned address.
		</p></div><div class="refsect1" lang="en"><a name="glInterleavedArrays.3G-notes"/><h2>Notes</h2><p>
			<tt>glInterleavedArrays</tt> is available only if the GL version is 1.1 or greater.
		</p><p>
			If <tt>glInterleavedArrays</tt> is called while compiling a display list, it is not compiled into the list,
			and it is executed immediately.
		</p><p>
			Execution of <tt>glInterleavedArrays</tt> is not allowed between the execution of <a href="glBegin.3G.xml"><tt>glBegin</tt></a> and the corresponding execution of <a href="glBegin.3G.xml"><tt>glEnd</tt></a>, but an error may or may not be generated. If no error is generated, the operation
			is undefined.
		</p><p>
			<tt>glInterleavedArrays</tt> is typically implemented on the client side.
		</p><p>
			Vertex array parameters are client-side state and are therefore not saved or restored by <a href="glPushAttrib.3G.xml"><tt>glPushAttrib</tt></a> and <a href="glPushAttrib.3G.xml"><tt>glPopAttrib</tt></a>. Use <a href="glPushClientAttrib.3G.xml"><tt>glPushClientAttrib</tt></a> and <a href="glPushClientAttrib.3G.xml"><tt>glPopClientAttrib</tt></a>
			instead.
		</p><p>
			When the <tt>GL_ARB_multitexture</tt> extension is supported, <tt>glInterleavedArrays</tt> only
			updates the texture coordinate array for the active active texture unit. The texture coordinate state for other client
			texture units is not update, regardless if they are enabled or not.
		</p></div><div class="refsect1" lang="en"><a name="glInterleavedArrays.3G-errors"/><h2>Errors</h2><p>
			<tt>GL_INVALID_ENUM</tt> is generated if <i><tt>format</tt></i> is not an accepted value.
		</p><p>
			<tt>GL_INVALID_VALUE</tt> is generated if <i><tt>stride</tt></i> is negative.
		</p></div><div class="refsect1" lang="en"><a name="glInterleavedArrays.3G-see_also"/><h2>See Also</h2><p>
			<span class="simplelist"><a href="glArrayElement.3G.xml">glArrayElement</a>, <a href="glClientActiveTextureARB.3G.xml">glClientActiveTextureARB</a>, <a href="glColorPointer.3G.xml">glColorPointer</a>, <a href="glDrawArrays.3G.xml">glDrawArrays</a>, <a href="glDrawElements.3G.xml">glDrawElements</a>, <a href="glEdgeFlagPointer.3G.xml">glEdgeFlagPointer</a>, <a href="glEnableClientState.3G.xml">glEnableClientState</a>, <a href="glGetPointer.3G.xml">glGetPointer</a>, <a href="glIndexPointer.3G.xml">glIndexPointer</a>, <a href="glNormalPointer.3G.xml">glNormalPointer</a>, <a href="glTexCoordPointer.3G.xml">glTexCoordPointer</a>, <a href="glVertexPointer.3G.xml">glVertexPointer</a></span>
		</p></div></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="glInitNames.3G.xml">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="reference-GL.xml">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="glIsEnabled.3G.xml">Next</a></td></tr><tr><td width="40%" align="left" valign="top">glInitNames </td><td width="20%" align="center"><a accesskey="h" href="index.xml">Home</a></td><td width="40%" align="right" valign="top"> glIsEnabled</td></tr></table></div></body></html>