102f4aeb0Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
202f4aeb0Sopenharmony_ci<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
302f4aeb0Sopenharmony_ci                            "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
402f4aeb0Sopenharmony_ci<refentry xml:base="" id="eglReleaseTexImage">
502f4aeb0Sopenharmony_ci    <refentryinfo>
602f4aeb0Sopenharmony_ci         <copyright>
702f4aeb0Sopenharmony_ci             <year>2003-2014</year>
802f4aeb0Sopenharmony_ci             <holder>The Khronos Group Inc.</holder>
902f4aeb0Sopenharmony_ci         </copyright>
1002f4aeb0Sopenharmony_ci    </refentryinfo>
1102f4aeb0Sopenharmony_ci    <refmeta>
1202f4aeb0Sopenharmony_ci        <refentrytitle>eglReleaseTexImage</refentrytitle>
1302f4aeb0Sopenharmony_ci        <manvolnum>3G</manvolnum>
1402f4aeb0Sopenharmony_ci    </refmeta>
1502f4aeb0Sopenharmony_ci    <refnamediv>
1602f4aeb0Sopenharmony_ci        <refname>eglReleaseTexImage</refname>
1702f4aeb0Sopenharmony_ci        <refpurpose>
1802f4aeb0Sopenharmony_ci            Releases a color buffer that is being used as a texture
1902f4aeb0Sopenharmony_ci        </refpurpose>
2002f4aeb0Sopenharmony_ci    </refnamediv>
2102f4aeb0Sopenharmony_ci    <refsynopsisdiv>
2202f4aeb0Sopenharmony_ci        <title>C Specification</title>
2302f4aeb0Sopenharmony_ci        <funcsynopsis>
2402f4aeb0Sopenharmony_ci            <funcprototype>
2502f4aeb0Sopenharmony_ci                <funcdef>EGLBoolean <function>eglReleaseTexImage</function></funcdef>
2602f4aeb0Sopenharmony_ci                <paramdef>EGLDisplay <parameter>display</parameter></paramdef>
2702f4aeb0Sopenharmony_ci                <paramdef>EGLSurface <parameter>surface</parameter></paramdef>
2802f4aeb0Sopenharmony_ci                <paramdef>EGLint <parameter>buffer</parameter></paramdef>
2902f4aeb0Sopenharmony_ci            </funcprototype>
3002f4aeb0Sopenharmony_ci        </funcsynopsis>
3102f4aeb0Sopenharmony_ci    </refsynopsisdiv>
3202f4aeb0Sopenharmony_ci    <refsect1 id="parameters"><title>Parameters</title>
3302f4aeb0Sopenharmony_ci        <variablelist>
3402f4aeb0Sopenharmony_ci            <varlistentry>
3502f4aeb0Sopenharmony_ci                <term><parameter>display</parameter></term>
3602f4aeb0Sopenharmony_ci                <listitem><para>Specifies the EGL display connection.</para></listitem>
3702f4aeb0Sopenharmony_ci            </varlistentry>
3802f4aeb0Sopenharmony_ci            <varlistentry>
3902f4aeb0Sopenharmony_ci                <term><parameter>surface</parameter></term>
4002f4aeb0Sopenharmony_ci                <listitem>
4102f4aeb0Sopenharmony_ci                    <para>
4202f4aeb0Sopenharmony_ci                        Specifies the EGL surface.
4302f4aeb0Sopenharmony_ci                    </para>
4402f4aeb0Sopenharmony_ci                </listitem>
4502f4aeb0Sopenharmony_ci            </varlistentry>
4602f4aeb0Sopenharmony_ci            <varlistentry>
4702f4aeb0Sopenharmony_ci                <term><parameter>buffer</parameter></term>
4802f4aeb0Sopenharmony_ci                <listitem><para>Specifies the texture image data.</para></listitem>
4902f4aeb0Sopenharmony_ci            </varlistentry>
5002f4aeb0Sopenharmony_ci        </variablelist>
5102f4aeb0Sopenharmony_ci    </refsect1>
5202f4aeb0Sopenharmony_ci    <refsect1 id="description"><title>Description</title>
5302f4aeb0Sopenharmony_ci        <para>
5402f4aeb0Sopenharmony_ci            The specified color buffer is released back to the surface. The surface is made
5502f4aeb0Sopenharmony_ci            available for reading and writing when it no longer has any color buffers bound as
5602f4aeb0Sopenharmony_ci            textures.
5702f4aeb0Sopenharmony_ci        </para>
5802f4aeb0Sopenharmony_ci    </refsect1>
5902f4aeb0Sopenharmony_ci    <refsect1 id="notes"><title>Notes</title>
6002f4aeb0Sopenharmony_ci        <para>
6102f4aeb0Sopenharmony_ci            If the specified color buffer is no longer bound to a texture (e.g., because the
6202f4aeb0Sopenharmony_ci            texture object was deleted) then eglReleaseTexImage has no effect. No error is
6302f4aeb0Sopenharmony_ci            generated.
6402f4aeb0Sopenharmony_ci        </para>
6502f4aeb0Sopenharmony_ci        <para>
6602f4aeb0Sopenharmony_ci            The contents of the color buffer are undefined when it is first released. In particular,
6702f4aeb0Sopenharmony_ci            there is no guarantee that the texture image is still present. However, the contents of
6802f4aeb0Sopenharmony_ci            other color buffers are unaffected by this call. Also, the contents of the depth and stencil buffers
6902f4aeb0Sopenharmony_ci            are not affected by <citerefentry><refentrytitle>eglBindTexImage</refentrytitle></citerefentry>
7002f4aeb0Sopenharmony_ci            and <function>eglReleaseTexImage</function>.
7102f4aeb0Sopenharmony_ci        </para>
7202f4aeb0Sopenharmony_ci        <para>
7302f4aeb0Sopenharmony_ci            After a color buffer is released from a texture (either explicitly by calling
7402f4aeb0Sopenharmony_ci            <function>eglReleaseTexImage</function> or implicitly by calling a routine such as
7502f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>glTexImage2D</refentrytitle></citerefentry>),
7602f4aeb0Sopenharmony_ci            all texture images that were defined by the color buffer become <constant>NULL</constant>
7702f4aeb0Sopenharmony_ci            (it is as if <citerefentry><refentrytitle>glTexImage</refentrytitle></citerefentry> was called with an image of zero width).
7802f4aeb0Sopenharmony_ci        </para>
7902f4aeb0Sopenharmony_ci    </refsect1>
8002f4aeb0Sopenharmony_ci    <refsect1 id="errors"><title>Errors</title>
8102f4aeb0Sopenharmony_ci        <para>
8202f4aeb0Sopenharmony_ci            <constant>EGL_BAD_MATCH</constant> is generated if the
8302f4aeb0Sopenharmony_ci            surface attribute <constant>EGL_TEXTURE_FORMAT</constant> is
8402f4aeb0Sopenharmony_ci            set to <constant>EGL_NO_TEXTURE</constant>.
8502f4aeb0Sopenharmony_ci        </para>
8602f4aeb0Sopenharmony_ci        <para>
8702f4aeb0Sopenharmony_ci            <constant>EGL_BAD_MATCH</constant> is generated if
8802f4aeb0Sopenharmony_ci            <parameter>buffer</parameter> is not a valid buffer
8902f4aeb0Sopenharmony_ci            (currently only <constant>EGL_BACK_BUFFER</constant> may be
9002f4aeb0Sopenharmony_ci            specified).
9102f4aeb0Sopenharmony_ci        </para>
9202f4aeb0Sopenharmony_ci        <para>
9302f4aeb0Sopenharmony_ci            <constant>EGL_BAD_SURFACE</constant> is generated if
9402f4aeb0Sopenharmony_ci            <parameter>surface</parameter> is not an EGL surface, or is
9502f4aeb0Sopenharmony_ci            not a bound pbuffer surface.
9602f4aeb0Sopenharmony_ci        </para>
9702f4aeb0Sopenharmony_ci    </refsect1>
9802f4aeb0Sopenharmony_ci    <refsect1 id="seealso"><title>See Also</title>
9902f4aeb0Sopenharmony_ci        <para>
10002f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglBindTexImage</refentrytitle></citerefentry>
10102f4aeb0Sopenharmony_ci        </para>
10202f4aeb0Sopenharmony_ci    </refsect1>
10302f4aeb0Sopenharmony_ci    <refsect3 id="Copyright"><title></title>
10402f4aeb0Sopenharmony_ci        <!-- Content included from copyright.inc.xsl -->
10502f4aeb0Sopenharmony_ci        <imageobject>
10602f4aeb0Sopenharmony_ci                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
10702f4aeb0Sopenharmony_ci        </imageobject>
10802f4aeb0Sopenharmony_ci        <para />
10902f4aeb0Sopenharmony_ci    </refsect3>
11002f4aeb0Sopenharmony_ci</refentry>
111