1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 2<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title xmlns:xlink="http://www.w3.org/1999/xlink">eglDestroySurface - EGL Reference Pages</title> 5 <link rel="stylesheet" type="text/css" href="khronos-man.css"/> 6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/> 7 </head> 8 <body> 9 <header/> 10 <div class="refentry" id="eglDestroySurface"> 11 <div class="titlepage"/> 12 <div class="refnamediv"> 13 <h2>Name</h2> 14 <p>eglDestroySurface — 15 destroy an <abbr class="acronym">EGL</abbr> surface 16 </p> 17 </div> 18 <div class="refsynopsisdiv"> 19 <h2>C Specification</h2> 20 <div class="funcsynopsis"> 21 <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table"> 22 <tr> 23 <td> 24 <code class="funcdef">EGLBoolean <strong class="fsfunc">eglDestroySurface</strong>(</code> 25 </td> 26 <td>EGLDisplay <var class="pdparam">display</var>, </td> 27 </tr> 28 <tr> 29 <td> </td> 30 <td>EGLSurface <var class="pdparam">surface</var><code>)</code>;</td> 31 </tr> 32 </table> 33 <div class="funcprototype-spacer"> </div> 34 </div> 35 </div> 36 <div class="refsect1" id="parameters"> 37 <h2>Parameters</h2> 38 <div class="variablelist"> 39 <dl class="variablelist"> 40 <dt> 41 <span class="term"> 42 <em class="parameter"> 43 <code>display</code> 44 </em> 45 </span> 46 </dt> 47 <dd> 48 <p>Specifies the EGL display connection.</p> 49 </dd> 50 <dt> 51 <span class="term"> 52 <em class="parameter"> 53 <code>surface</code> 54 </em> 55 </span> 56 </dt> 57 <dd> 58 <p>Specifies the EGL surface to be destroyed. 59 </p> 60 </dd> 61 </dl> 62 </div> 63 </div> 64 <div class="refsect1" id="description"> 65 <h2>Description</h2> 66 <p> 67 If the EGL surface <em class="parameter"><code>surface</code></em> is not current to any 68 thread, <code class="function">eglDestroySurface</code> destroys it immediately. 69 Otherwise, <em class="parameter"><code>surface</code></em> is destroyed when it becomes 70 not current to any thread. 71 Furthermore, resources associated with a pbuffer surface are not released until 72 all color buffers of that pbuffer bound to a texture object have been released. 73 </p> 74 </div> 75 <div class="refsect1" id="errors"> 76 <h2>Errors</h2> 77 <p> 78 <code class="constant">EGL_FALSE</code> is returned if destruction of 79 the surface fails, <code class="constant">EGL_TRUE</code> otherwise. 80 </p> 81 <p> 82 <code class="constant">EGL_BAD_DISPLAY</code> is generated if 83 <em class="parameter"><code>display</code></em> is not an EGL display connection. 84 </p> 85 <p> 86 <code class="constant">EGL_NOT_INITIALIZED</code> is generated if 87 <em class="parameter"><code>display</code></em> has not been initialized. 88 </p> 89 <p> 90 <code class="constant">EGL_BAD_SURFACE</code> is generated if 91 <em class="parameter"><code>surface</code></em> is not an EGL surface. 92 </p> 93 </div> 94 <div class="refsect1" id="seealso"> 95 <h2>See Also</h2> 96 <p> 97 <a class="citerefentry" href="eglCreatePbufferSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreatePbufferSurface</span></span></a>, 98 <a class="citerefentry" href="eglCreatePixmapSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreatePixmapSurface</span></span></a>, 99 <a class="citerefentry" href="eglCreateWindowSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreateWindowSurface</span></span></a>, 100 <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a> </p> 101 </div> 102 <p> 103 </p> 104 <div class="refsect3" id="copyright"> 105 <img src="KhronosLogo.jpg"/> 106 <p> 107 Copyright © 2003-2014 The Khronos Group Inc. 108 Permission is hereby granted, free of charge, to any person obtaining a 109 copy of this software and/or associated documentation files (the 110 "Materials"), to deal in the Materials without restriction, including 111 without limitation the rights to use, copy, modify, merge, publish, 112 distribute, sublicense, and/or sell copies of the Materials, and to 113 permit persons to whom the Materials are furnished to do so, subject to 114 the condition that this copyright notice and permission notice shall be included 115 in all copies or substantial portions of the Materials. 116 </p> 117 </div> 118 <p> 119</p> 120 </div> 121 <footer/> 122 </body> 123</html> 124