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="eglDestroySurface"> 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>eglDestroySurface</refentrytitle> 1302f4aeb0Sopenharmony_ci <manvolnum>3G</manvolnum> 1402f4aeb0Sopenharmony_ci </refmeta> 1502f4aeb0Sopenharmony_ci <refnamediv> 1602f4aeb0Sopenharmony_ci <refname>eglDestroySurface</refname> 1702f4aeb0Sopenharmony_ci <refpurpose> 1802f4aeb0Sopenharmony_ci destroy an <acronym>EGL</acronym> surface 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>eglDestroySurface</function></funcdef> 2602f4aeb0Sopenharmony_ci <paramdef>EGLDisplay <parameter>display</parameter></paramdef> 2702f4aeb0Sopenharmony_ci <paramdef>EGLSurface <parameter>surface</parameter></paramdef> 2802f4aeb0Sopenharmony_ci </funcprototype> 2902f4aeb0Sopenharmony_ci </funcsynopsis> 3002f4aeb0Sopenharmony_ci </refsynopsisdiv> 3102f4aeb0Sopenharmony_ci <refsect1 id="parameters"><title>Parameters</title> 3202f4aeb0Sopenharmony_ci <variablelist> 3302f4aeb0Sopenharmony_ci <varlistentry> 3402f4aeb0Sopenharmony_ci <term><parameter>display</parameter></term> 3502f4aeb0Sopenharmony_ci <listitem><para>Specifies the EGL display connection.</para></listitem> 3602f4aeb0Sopenharmony_ci </varlistentry> 3702f4aeb0Sopenharmony_ci <varlistentry> 3802f4aeb0Sopenharmony_ci <term><parameter>surface</parameter></term> 3902f4aeb0Sopenharmony_ci <listitem><para>Specifies the EGL surface to be destroyed. 4002f4aeb0Sopenharmony_ci </para></listitem> 4102f4aeb0Sopenharmony_ci </varlistentry> 4202f4aeb0Sopenharmony_ci </variablelist> 4302f4aeb0Sopenharmony_ci </refsect1> 4402f4aeb0Sopenharmony_ci <refsect1 id="description"><title>Description</title> 4502f4aeb0Sopenharmony_ci <para> 4602f4aeb0Sopenharmony_ci If the EGL surface <parameter>surface</parameter> is not current to any 4702f4aeb0Sopenharmony_ci thread, <function>eglDestroySurface</function> destroys it immediately. 4802f4aeb0Sopenharmony_ci Otherwise, <parameter>surface</parameter> is destroyed when it becomes 4902f4aeb0Sopenharmony_ci not current to any thread. 5002f4aeb0Sopenharmony_ci Furthermore, resources associated with a pbuffer surface are not released until 5102f4aeb0Sopenharmony_ci all color buffers of that pbuffer bound to a texture object have been released. 5202f4aeb0Sopenharmony_ci </para> 5302f4aeb0Sopenharmony_ci </refsect1> 5402f4aeb0Sopenharmony_ci <refsect1 id="errors"><title>Errors</title> 5502f4aeb0Sopenharmony_ci <para> 5602f4aeb0Sopenharmony_ci <constant>EGL_FALSE</constant> is returned if destruction of 5702f4aeb0Sopenharmony_ci the surface fails, <constant>EGL_TRUE</constant> otherwise. 5802f4aeb0Sopenharmony_ci </para> 5902f4aeb0Sopenharmony_ci <para> 6002f4aeb0Sopenharmony_ci <constant>EGL_BAD_DISPLAY</constant> is generated if 6102f4aeb0Sopenharmony_ci <parameter>display</parameter> is not an EGL display connection. 6202f4aeb0Sopenharmony_ci </para> 6302f4aeb0Sopenharmony_ci <para> 6402f4aeb0Sopenharmony_ci <constant>EGL_NOT_INITIALIZED</constant> is generated if 6502f4aeb0Sopenharmony_ci <parameter>display</parameter> has not been initialized. 6602f4aeb0Sopenharmony_ci </para> 6702f4aeb0Sopenharmony_ci <para> 6802f4aeb0Sopenharmony_ci <constant>EGL_BAD_SURFACE</constant> is generated if 6902f4aeb0Sopenharmony_ci <parameter>surface</parameter> is not an EGL surface. 7002f4aeb0Sopenharmony_ci </para> 7102f4aeb0Sopenharmony_ci </refsect1> 7202f4aeb0Sopenharmony_ci <refsect1 id="seealso"><title>See Also</title> 7302f4aeb0Sopenharmony_ci <para> 7402f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglCreatePbufferSurface</refentrytitle></citerefentry>, 7502f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglCreatePixmapSurface</refentrytitle></citerefentry>, 7602f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglCreateWindowSurface</refentrytitle></citerefentry>, 7702f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglMakeCurrent</refentrytitle></citerefentry> </para> 7802f4aeb0Sopenharmony_ci </refsect1> 7902f4aeb0Sopenharmony_ci <refsect3 id="Copyright"><title></title> 8002f4aeb0Sopenharmony_ci <!-- Content included from copyright.inc.xsl --> 8102f4aeb0Sopenharmony_ci <imageobject> 8202f4aeb0Sopenharmony_ci <imagedata fileref="KhronosLogo.jpg" format="jpg" /> 8302f4aeb0Sopenharmony_ci </imageobject> 8402f4aeb0Sopenharmony_ci <para /> 8502f4aeb0Sopenharmony_ci </refsect3> 8602f4aeb0Sopenharmony_ci</refentry> 87