102f4aeb0Sopenharmony_ci<?xml version="1.0" encoding="UTF-8" standalone="no"?> 202f4aeb0Sopenharmony_ci<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"> 302f4aeb0Sopenharmony_ci <head> 402f4aeb0Sopenharmony_ci <title xmlns:xlink="http://www.w3.org/1999/xlink">eglDestroySurface - EGL Reference Pages</title> 502f4aeb0Sopenharmony_ci <link rel="stylesheet" type="text/css" href="khronos-man.css"/> 602f4aeb0Sopenharmony_ci <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/> 702f4aeb0Sopenharmony_ci </head> 802f4aeb0Sopenharmony_ci <body> 902f4aeb0Sopenharmony_ci <header/> 1002f4aeb0Sopenharmony_ci <div class="refentry" id="eglDestroySurface"> 1102f4aeb0Sopenharmony_ci <div class="titlepage"/> 1202f4aeb0Sopenharmony_ci <div class="refnamediv"> 1302f4aeb0Sopenharmony_ci <h2>Name</h2> 1402f4aeb0Sopenharmony_ci <p>eglDestroySurface — 1502f4aeb0Sopenharmony_ci destroy an <abbr class="acronym">EGL</abbr> surface 1602f4aeb0Sopenharmony_ci </p> 1702f4aeb0Sopenharmony_ci </div> 1802f4aeb0Sopenharmony_ci <div class="refsynopsisdiv"> 1902f4aeb0Sopenharmony_ci <h2>C Specification</h2> 2002f4aeb0Sopenharmony_ci <div class="funcsynopsis"> 2102f4aeb0Sopenharmony_ci <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table"> 2202f4aeb0Sopenharmony_ci <tr> 2302f4aeb0Sopenharmony_ci <td> 2402f4aeb0Sopenharmony_ci <code class="funcdef">EGLBoolean <strong class="fsfunc">eglDestroySurface</strong>(</code> 2502f4aeb0Sopenharmony_ci </td> 2602f4aeb0Sopenharmony_ci <td>EGLDisplay <var class="pdparam">display</var>, </td> 2702f4aeb0Sopenharmony_ci </tr> 2802f4aeb0Sopenharmony_ci <tr> 2902f4aeb0Sopenharmony_ci <td> </td> 3002f4aeb0Sopenharmony_ci <td>EGLSurface <var class="pdparam">surface</var><code>)</code>;</td> 3102f4aeb0Sopenharmony_ci </tr> 3202f4aeb0Sopenharmony_ci </table> 3302f4aeb0Sopenharmony_ci <div class="funcprototype-spacer"> </div> 3402f4aeb0Sopenharmony_ci </div> 3502f4aeb0Sopenharmony_ci </div> 3602f4aeb0Sopenharmony_ci <div class="refsect1" id="parameters"> 3702f4aeb0Sopenharmony_ci <h2>Parameters</h2> 3802f4aeb0Sopenharmony_ci <div class="variablelist"> 3902f4aeb0Sopenharmony_ci <dl class="variablelist"> 4002f4aeb0Sopenharmony_ci <dt> 4102f4aeb0Sopenharmony_ci <span class="term"> 4202f4aeb0Sopenharmony_ci <em class="parameter"> 4302f4aeb0Sopenharmony_ci <code>display</code> 4402f4aeb0Sopenharmony_ci </em> 4502f4aeb0Sopenharmony_ci </span> 4602f4aeb0Sopenharmony_ci </dt> 4702f4aeb0Sopenharmony_ci <dd> 4802f4aeb0Sopenharmony_ci <p>Specifies the EGL display connection.</p> 4902f4aeb0Sopenharmony_ci </dd> 5002f4aeb0Sopenharmony_ci <dt> 5102f4aeb0Sopenharmony_ci <span class="term"> 5202f4aeb0Sopenharmony_ci <em class="parameter"> 5302f4aeb0Sopenharmony_ci <code>surface</code> 5402f4aeb0Sopenharmony_ci </em> 5502f4aeb0Sopenharmony_ci </span> 5602f4aeb0Sopenharmony_ci </dt> 5702f4aeb0Sopenharmony_ci <dd> 5802f4aeb0Sopenharmony_ci <p>Specifies the EGL surface to be destroyed. 5902f4aeb0Sopenharmony_ci </p> 6002f4aeb0Sopenharmony_ci </dd> 6102f4aeb0Sopenharmony_ci </dl> 6202f4aeb0Sopenharmony_ci </div> 6302f4aeb0Sopenharmony_ci </div> 6402f4aeb0Sopenharmony_ci <div class="refsect1" id="description"> 6502f4aeb0Sopenharmony_ci <h2>Description</h2> 6602f4aeb0Sopenharmony_ci <p> 6702f4aeb0Sopenharmony_ci If the EGL surface <em class="parameter"><code>surface</code></em> is not current to any 6802f4aeb0Sopenharmony_ci thread, <code class="function">eglDestroySurface</code> destroys it immediately. 6902f4aeb0Sopenharmony_ci Otherwise, <em class="parameter"><code>surface</code></em> is destroyed when it becomes 7002f4aeb0Sopenharmony_ci not current to any thread. 7102f4aeb0Sopenharmony_ci Furthermore, resources associated with a pbuffer surface are not released until 7202f4aeb0Sopenharmony_ci all color buffers of that pbuffer bound to a texture object have been released. 7302f4aeb0Sopenharmony_ci </p> 7402f4aeb0Sopenharmony_ci </div> 7502f4aeb0Sopenharmony_ci <div class="refsect1" id="errors"> 7602f4aeb0Sopenharmony_ci <h2>Errors</h2> 7702f4aeb0Sopenharmony_ci <p> 7802f4aeb0Sopenharmony_ci <code class="constant">EGL_FALSE</code> is returned if destruction of 7902f4aeb0Sopenharmony_ci the surface fails, <code class="constant">EGL_TRUE</code> otherwise. 8002f4aeb0Sopenharmony_ci </p> 8102f4aeb0Sopenharmony_ci <p> 8202f4aeb0Sopenharmony_ci <code class="constant">EGL_BAD_DISPLAY</code> is generated if 8302f4aeb0Sopenharmony_ci <em class="parameter"><code>display</code></em> is not an EGL display connection. 8402f4aeb0Sopenharmony_ci </p> 8502f4aeb0Sopenharmony_ci <p> 8602f4aeb0Sopenharmony_ci <code class="constant">EGL_NOT_INITIALIZED</code> is generated if 8702f4aeb0Sopenharmony_ci <em class="parameter"><code>display</code></em> has not been initialized. 8802f4aeb0Sopenharmony_ci </p> 8902f4aeb0Sopenharmony_ci <p> 9002f4aeb0Sopenharmony_ci <code class="constant">EGL_BAD_SURFACE</code> is generated if 9102f4aeb0Sopenharmony_ci <em class="parameter"><code>surface</code></em> is not an EGL surface. 9202f4aeb0Sopenharmony_ci </p> 9302f4aeb0Sopenharmony_ci </div> 9402f4aeb0Sopenharmony_ci <div class="refsect1" id="seealso"> 9502f4aeb0Sopenharmony_ci <h2>See Also</h2> 9602f4aeb0Sopenharmony_ci <p> 9702f4aeb0Sopenharmony_ci <a class="citerefentry" href="eglCreatePbufferSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreatePbufferSurface</span></span></a>, 9802f4aeb0Sopenharmony_ci <a class="citerefentry" href="eglCreatePixmapSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreatePixmapSurface</span></span></a>, 9902f4aeb0Sopenharmony_ci <a class="citerefentry" href="eglCreateWindowSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreateWindowSurface</span></span></a>, 10002f4aeb0Sopenharmony_ci <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a> </p> 10102f4aeb0Sopenharmony_ci </div> 10202f4aeb0Sopenharmony_ci <p> 10302f4aeb0Sopenharmony_ci </p> 10402f4aeb0Sopenharmony_ci <div class="refsect3" id="copyright"> 10502f4aeb0Sopenharmony_ci <img src="KhronosLogo.jpg"/> 10602f4aeb0Sopenharmony_ci <p> 10702f4aeb0Sopenharmony_ci Copyright © 2003-2014 The Khronos Group Inc. 10802f4aeb0Sopenharmony_ci Permission is hereby granted, free of charge, to any person obtaining a 10902f4aeb0Sopenharmony_ci copy of this software and/or associated documentation files (the 11002f4aeb0Sopenharmony_ci "Materials"), to deal in the Materials without restriction, including 11102f4aeb0Sopenharmony_ci without limitation the rights to use, copy, modify, merge, publish, 11202f4aeb0Sopenharmony_ci distribute, sublicense, and/or sell copies of the Materials, and to 11302f4aeb0Sopenharmony_ci permit persons to whom the Materials are furnished to do so, subject to 11402f4aeb0Sopenharmony_ci the condition that this copyright notice and permission notice shall be included 11502f4aeb0Sopenharmony_ci in all copies or substantial portions of the Materials. 11602f4aeb0Sopenharmony_ci </p> 11702f4aeb0Sopenharmony_ci </div> 11802f4aeb0Sopenharmony_ci <p> 11902f4aeb0Sopenharmony_ci</p> 12002f4aeb0Sopenharmony_ci </div> 12102f4aeb0Sopenharmony_ci <footer/> 12202f4aeb0Sopenharmony_ci </body> 12302f4aeb0Sopenharmony_ci</html> 124