Commit | Line | Data |
---|---|---|
7faf1d71 AW |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN" | |
3 | "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd"> | |
4 | <refentry id="glActiveTexture"> | |
5 | <refmeta> | |
6 | <refmetainfo> | |
7 | <copyright> | |
8 | <year>1991-2006</year> | |
9 | <holder>Silicon Graphics, Inc.</holder> | |
10 | </copyright> | |
11 | </refmetainfo> | |
12 | <refentrytitle>glActiveTexture</refentrytitle> | |
13 | <manvolnum>3G</manvolnum> | |
14 | </refmeta> | |
15 | <refnamediv> | |
16 | <refname>glActiveTexture</refname> | |
17 | <refpurpose>select active texture unit</refpurpose> | |
18 | </refnamediv> | |
19 | <refsynopsisdiv><title>C Specification</title> | |
20 | <funcsynopsis> | |
21 | <funcprototype> | |
22 | <funcdef>void <function>glActiveTexture</function></funcdef> | |
23 | <paramdef>GLenum <parameter>texture</parameter></paramdef> | |
24 | </funcprototype> | |
25 | </funcsynopsis> | |
26 | </refsynopsisdiv> | |
27 | <!-- eqn: ignoring delim $$ --> | |
28 | <refsect1 id="parameters"><title>Parameters</title> | |
29 | <variablelist> | |
30 | <varlistentry> | |
31 | <term><parameter>texture</parameter></term> | |
32 | <listitem> | |
33 | <para> | |
34 | Specifies which texture unit to make active. The number | |
35 | of texture units is implementation dependent, but must be at least | |
36 | 80. <parameter>texture</parameter> must be one of | |
37 | <constant>GL_TEXTURE<emphasis>i</emphasis></constant>, | |
38 | where | |
39 | <emphasis>i</emphasis> ranges from 0 (<constant>GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS</constant> - 1). | |
40 | The initial value is <constant>GL_TEXTURE0</constant>. | |
41 | </para> | |
42 | </listitem> | |
43 | </varlistentry> | |
44 | </variablelist> | |
45 | </refsect1> | |
46 | <refsect1 id="description"><title>Description</title> | |
47 | <para> | |
48 | <function>glActiveTexture</function> selects which texture unit subsequent texture state calls will | |
49 | affect. The number of texture units an implementation supports is | |
50 | implementation dependent, but must be at least 80. | |
51 | </para> | |
52 | </refsect1> | |
53 | <refsect1 id="errors"><title>Errors</title> | |
54 | <para> | |
55 | <constant>GL_INVALID_ENUM</constant> is generated if <parameter>texture</parameter> is not one of | |
56 | <constant>GL_TEXTURE<emphasis>i</emphasis></constant>, | |
57 | where <emphasis>i</emphasis> ranges from 0 to (<constant>GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS</constant> - 1). | |
58 | </para> | |
59 | </refsect1> | |
60 | <refsect1 id="associatedgets"><title>Associated Gets</title> | |
61 | <para> | |
62 | <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_ACTIVE_TEXTURE</constant>, or <constant>GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS</constant>. | |
63 | </para> | |
64 | </refsect1> | |
65 | <refsect1 id="seealso"><title>See Also</title> | |
66 | <para> | |
67 | <citerefentry><refentrytitle>glGenTextures</refentrytitle></citerefentry>, | |
68 | <citerefentry><refentrytitle>glBindTexture</refentrytitle></citerefentry>, | |
69 | <citerefentry><refentrytitle>glCompressedTexImage1D</refentrytitle></citerefentry>, | |
70 | <citerefentry><refentrytitle>glCompressedTexImage2D</refentrytitle></citerefentry>, | |
71 | <citerefentry><refentrytitle>glCompressedTexImage3D</refentrytitle></citerefentry>, | |
72 | <citerefentry><refentrytitle>glCompressedTexSubImage1D</refentrytitle></citerefentry>, | |
73 | <citerefentry><refentrytitle>glCompressedTexSubImage2D</refentrytitle></citerefentry>, | |
74 | <citerefentry><refentrytitle>glCompressedTexSubImage3D</refentrytitle></citerefentry>, | |
75 | <citerefentry><refentrytitle>glCopyTexImage1D</refentrytitle></citerefentry>, | |
76 | <citerefentry><refentrytitle>glCopyTexImage2D</refentrytitle></citerefentry>, | |
77 | <citerefentry><refentrytitle>glCopyTexSubImage1D</refentrytitle></citerefentry>, | |
78 | <citerefentry><refentrytitle>glCopyTexSubImage2D</refentrytitle></citerefentry>, | |
79 | <citerefentry><refentrytitle>glCopyTexSubImage3D</refentrytitle></citerefentry>, | |
80 | <citerefentry><refentrytitle>glDeleteTextures</refentrytitle></citerefentry> | |
81 | <citerefentry><refentrytitle>glIsTexture</refentrytitle></citerefentry>, | |
82 | <citerefentry><refentrytitle>glTexImage1D</refentrytitle></citerefentry>, | |
83 | <citerefentry><refentrytitle>glTexImage2D</refentrytitle></citerefentry>, | |
84 | <citerefentry><refentrytitle>glTexImage2DMultisample</refentrytitle></citerefentry>, | |
85 | <citerefentry><refentrytitle>glTexImage3D</refentrytitle></citerefentry>, | |
86 | <citerefentry><refentrytitle>glTexImage3DMultisample</refentrytitle></citerefentry>, | |
87 | <citerefentry><refentrytitle>glTexSubImage1D</refentrytitle></citerefentry>, | |
88 | <citerefentry><refentrytitle>glTexSubImage2D</refentrytitle></citerefentry>, | |
89 | <citerefentry><refentrytitle>glTexSubImage3D</refentrytitle></citerefentry>, | |
90 | <citerefentry><refentrytitle>glTexParameter</refentrytitle></citerefentry>, | |
91 | </para> | |
92 | </refsect1> | |
93 | <refsect1 id="Copyright"><title>Copyright</title> | |
94 | <para> | |
95 | Copyright <trademark class="copyright"></trademark> 1991-2006 | |
96 | Silicon Graphics, Inc. This document is licensed under the SGI | |
97 | Free Software B License. For details, see | |
98 | <ulink url="http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/</ulink>. | |
99 | </para> | |
100 | </refsect1> | |
101 | </refentry> |