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">eglTerminate - 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="eglTerminate"> 11 <div class="titlepage"/> 12 <div class="refnamediv"> 13 <h2>Name</h2> 14 <p>eglTerminate — 15 terminate an <abbr class="acronym">EGL</abbr> display connection 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">eglTerminate</strong>(</code> 25 </td> 26 <td>EGLDisplay <var class="pdparam">display</var><code>)</code>;</td> 27 </tr> 28 </table> 29 <div class="funcprototype-spacer"> </div> 30 </div> 31 </div> 32 <div class="refsect1" id="parameters"> 33 <h2>Parameters</h2> 34 <div class="variablelist"> 35 <dl class="variablelist"> 36 <dt> 37 <span class="term"> 38 <em class="parameter"> 39 <code>display</code> 40 </em> 41 </span> 42 </dt> 43 <dd> 44 <p> 45 Specifies the EGL display connection to terminate. 46 </p> 47 </dd> 48 </dl> 49 </div> 50 </div> 51 <div class="refsect1" id="description"> 52 <h2>Description</h2> 53 <p> 54 <code class="function">eglTerminate</code> releases resources associated with 55 an EGL display connection. Termination marks all EGL resources associated 56 with the EGL display connection for deletion. If contexts or surfaces 57 associated with <em class="parameter"><code>display</code></em> is current to any thread, 58 they are not released until they are no longer current as a result of 59 <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a>. 60 </p> 61 <p> 62 Terminating an already terminated EGL display connection has no effect. 63 A terminated display may be re-initialized by calling 64 <a class="citerefentry" href="eglInitialize.xhtml"><span class="citerefentry"><span class="refentrytitle">eglInitialize</span></span></a> 65 again. 66 </p> 67 </div> 68 <div class="refsect1" id="errors"> 69 <h2>Errors</h2> 70 <p> 71 <code class="constant">EGL_FALSE</code> is returned if 72 <code class="function">eglTerminate</code> fails, 73 <code class="constant">EGL_TRUE</code> otherwise. 74 </p> 75 <p> 76 <code class="constant">EGL_BAD_DISPLAY</code> is generated if 77 <em class="parameter"><code>display</code></em> is not an EGL display connection. 78 </p> 79 </div> 80 <div class="refsect1" id="seealso"> 81 <h2>See Also</h2> 82 <p> 83 <a class="citerefentry" href="eglInitialize.xhtml"><span class="citerefentry"><span class="refentrytitle">eglInitialize</span></span></a>, 84 <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a> 85 </p> 86 </div> 87 <p> 88 </p> 89 <div class="refsect3" id="copyright"> 90 <img src="KhronosLogo.jpg"/> 91 <p> 92 Copyright © 2003-2014 The Khronos Group Inc. 93 Permission is hereby granted, free of charge, to any person obtaining a 94 copy of this software and/or associated documentation files (the 95 "Materials"), to deal in the Materials without restriction, including 96 without limitation the rights to use, copy, modify, merge, publish, 97 distribute, sublicense, and/or sell copies of the Materials, and to 98 permit persons to whom the Materials are furnished to do so, subject to 99 the condition that this copyright notice and permission notice shall be included 100 in all copies or substantial portions of the Materials. 101 </p> 102 </div> 103 <p> 104</p> 105 </div> 106 <footer/> 107 </body> 108</html> 109