rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man4 / glInvalidateTexImage.xml
CommitLineData
7faf1d71
AW
1<?xml version="1.0" encoding="UTF-8"?>\r
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r
4<refentry id="glInvalidateTexImage">\r
5 <refmeta>\r
6 <refmetainfo>\r
7 <copyright>\r
8 <year>2012</year>\r
9 <holder>Khronos Group</holder>\r
10 </copyright>\r
11 </refmetainfo>\r
12 <refentrytitle>glInvalidateTexImage</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>glInvalidateTexImage</refname>\r
17 <refpurpose>invalidate the entirety a texture image</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>C Specification</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>void <function>glInvalidateTexImage</function></funcdef>\r
23 <paramdef>GLuint <parameter>texture</parameter></paramdef>\r
24 <paramdef>GLint <parameter>level</parameter></paramdef>\r
25 </funcprototype>\r
26 </funcsynopsis>\r
27 </refsynopsisdiv>\r
28 <refsect1 id="parameters"><title>Parameters</title>\r
29 <variablelist>\r
30 <varlistentry>\r
31 <term><parameter>texture</parameter></term>\r
32 <listitem>\r
33 <para>\r
34 The name of a texture object to invalidate.\r
35 </para>\r
36 </listitem>\r
37 </varlistentry>\r
38 <varlistentry>\r
39 <term><parameter>level</parameter></term>\r
40 <listitem>\r
41 <para>\r
42 The level of detail of the texture object to invalidate.\r
43 </para>\r
44 </listitem>\r
45 </varlistentry>\r
46 </variablelist>\r
47 </refsect1>\r
48 <refsect1 id="description"><title>Description</title>\r
49 <para>\r
50 <function>glInvalidateTexSubImage</function> invalidates all of\r
51 a texture image. <parameter>texture</parameter> and <parameter>level</parameter> indicated\r
52 which texture image is being invalidated. After this command, data in the texture image has undefined\r
53 values.\r
54 </para>\r
55 <para>\r
56 <parameter>level</parameter> must be greater than or equal to zero and be\r
57 less than the base 2 logarithm of the maximum texture width, height, or depth.\r
58 </para>\r
59 <para>\r
60 For textures of targets <constant>GL_TEXTURE_RECTANGLE</constant>, <constant>GL_TEXTURE_BUFFER</constant>, <constant>GL_TEXTURE_2D_MULTISAMPLE</constant>, or\r
61 <constant>GL_TEXTURE_2D_MULTISAMPLE_ARRAY</constant>, level must be zero.\r
62 </para>\r
63 </refsect1>\r
64 <refsect1 id="errors"><title>Errors</title>\r
65 <para>\r
66 <constant>GL_INVALID_VALUE</constant> is generated if <parameter>level</parameter> is\r
67 less than zero or if it is greater or equal to the base 2 logarithm of the maximum texture width, height, or depth.\r
68 </para>\r
69 <para>\r
70 <constant>GL_INVALID_VALUE</constant> is generated if the target of <parameter>texture</parameter>\r
71 is any of <constant>GL_TEXTURE_RECTANGLE</constant>, <constant>GL_TEXTURE_BUFFER</constant>, <constant>GL_TEXTURE_2D_MULTISAMPLE</constant>, or\r
72 <constant>GL_TEXTURE_2D_MULTISAMPLE_ARRAY</constant> and <parameter>level</parameter> is not zero.\r
73 </para>\r
74 <para>\r
75 <constant>GL_INVALID_VALUE</constant> is generated if <parameter>texture</parameter> is not the\r
76 name of an existing texture object.\r
77 </para>\r
78 </refsect1>\r
79 <refsect1 id="associatedgets"><title>Associated Gets</title>\r
80 <para>\r
81 <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_MAX_TEXTURE_SIZE</constant>\r
82 </para>\r
83 </refsect1>\r
84 <refsect1 id="seealso"><title>See Also</title>\r
85 <para>\r
86 <citerefentry><refentrytitle>glInvalidateTexSubImage</refentrytitle></citerefentry>,,\r
87 <citerefentry><refentrytitle>glInvalidateBufferSubData</refentrytitle></citerefentry>,\r
88 <citerefentry><refentrytitle>glInvalidateBufferData</refentrytitle></citerefentry>,\r
89 <citerefentry><refentrytitle>glInvalidateFramebuffer</refentrytitle></citerefentry>,\r
90 <citerefentry><refentrytitle>glInvalidateSubFramebuffer</refentrytitle></citerefentry>.\r
91 </para>\r
92 </refsect1>\r
93 <refsect1 id="Copyright"><title>Copyright</title>\r
94 <para>\r
95 Copyright <trademark class="copyright"></trademark> 2012 Khronos Group. \r
96 This material may be distributed subject to the terms and conditions set forth in \r
97 the Open Publication License, v 1.0, 8 June 1999.\r
98 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
99 </para>\r
100 </refsect1>\r
101</refentry>\r