2009-03-08 00:46:58 +00:00
<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
"http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
2014-03-28 19:06:55 +00:00
<refentry id= "glActiveTexture" >
2009-03-08 00:46:58 +00:00
<refmeta >
<refmetainfo >
<copyright >
<year > 1991-2006</year>
<holder > Silicon Graphics, Inc.</holder>
</copyright>
</refmetainfo>
2014-03-28 19:06:55 +00:00
<refentrytitle > glActiveTexture</refentrytitle>
2009-03-08 00:46:58 +00:00
<manvolnum > 3G</manvolnum>
</refmeta>
<refnamediv >
2014-03-28 19:06:55 +00:00
<refname > glActiveTexture</refname>
2009-03-08 00:46:58 +00:00
<refpurpose > select active texture unit</refpurpose>
</refnamediv>
<refsynopsisdiv > <title > C Specification</title>
<funcsynopsis >
<funcprototype >
2014-03-28 19:06:55 +00:00
<funcdef > void <function > glActiveTexture</function> </funcdef>
2009-03-08 00:46:58 +00:00
<paramdef > GLenum <parameter > texture</parameter> </paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<!-- eqn: ignoring delim $$ -->
<refsect1 id= "parameters" > <title > Parameters</title>
<variablelist >
<varlistentry >
<term > <parameter > texture</parameter> </term>
<listitem >
<para >
Specifies which texture unit to make active. The number
of texture units is implementation dependent, but must be at least
2014-03-28 19:06:55 +00:00
8. <parameter > texture</parameter> must be one of
2009-03-08 00:46:58 +00:00
<constant > GL_TEXTURE</constant> <inlineequation > <mml:math > <mml:mi mathvariant= "italic" > i</mml:mi> </mml:math> </inlineequation> ,
2014-03-28 19:06:55 +00:00
where
i ranges from 0 to (<constant > GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS</constant> - 1).
The initial value is <constant > GL_TEXTURE0</constant> .
2009-03-08 00:46:58 +00:00
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 id= "description" > <title > Description</title>
<para >
2014-03-28 19:06:55 +00:00
<function > glActiveTexture</function> selects which texture unit subsequent texture state calls will
affect. The number of texture units an implementation supports is
implementation dependent, but must be at least 8.
2009-03-08 00:46:58 +00:00
</para>
</refsect1>
<refsect1 id= "errors" > <title > Errors</title>
<para >
<constant > GL_INVALID_ENUM</constant> is generated if <parameter > texture</parameter> is not one of
<constant > GL_TEXTURE</constant> <inlineequation > <mml:math > <mml:mi mathvariant= "italic" > i</mml:mi> </mml:math> </inlineequation> ,
2014-03-28 19:06:55 +00:00
where i ranges from 0 to (<constant > GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS</constant> - 1).
2009-03-08 00:46:58 +00:00
</para>
</refsect1>
<refsect1 id= "associatedgets" > <title > Associated Gets</title>
<para >
2014-03-28 19:06:55 +00:00
<citerefentry > <refentrytitle > glGet</refentrytitle> </citerefentry> with argument <constant > GL_ACTIVE_TEXTURE</constant> or <constant > GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS</constant>
2009-03-08 00:46:58 +00:00
</para>
</refsect1>
<refsect1 id= "seealso" > <title > See Also</title>
<para >
2014-03-28 19:06:55 +00:00
<citerefentry > <refentrytitle > glTexParameter</refentrytitle> </citerefentry>
2009-03-08 00:46:58 +00:00
</para>
</refsect1>
2014-03-28 19:06:55 +00:00
<refsect1 id= "copyright" > <title > Copyright</title>
2009-03-08 00:46:58 +00:00
<para >
Copyright <trademark class= "copyright" > </trademark> 1991-2006
Silicon Graphics, Inc. This document is licensed under the SGI
Free Software B License. For details, see
<ulink url= "http://oss.sgi.com/projects/FreeB/" > http://oss.sgi.com/projects/FreeB/</ulink> .
</para>
</refsect1>
</refentry>