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">eglReleaseTexImage - 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="eglReleaseTexImage"> 1102f4aeb0Sopenharmony_ci <div class="titlepage"/> 1202f4aeb0Sopenharmony_ci <div class="refnamediv"> 1302f4aeb0Sopenharmony_ci <h2>Name</h2> 1402f4aeb0Sopenharmony_ci <p>eglReleaseTexImage — 1502f4aeb0Sopenharmony_ci Releases a color buffer that is being used as a texture 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">eglReleaseTexImage</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>, </td> 3102f4aeb0Sopenharmony_ci </tr> 3202f4aeb0Sopenharmony_ci <tr> 3302f4aeb0Sopenharmony_ci <td> </td> 3402f4aeb0Sopenharmony_ci <td>EGLint <var class="pdparam">buffer</var><code>)</code>;</td> 3502f4aeb0Sopenharmony_ci </tr> 3602f4aeb0Sopenharmony_ci </table> 3702f4aeb0Sopenharmony_ci <div class="funcprototype-spacer"> </div> 3802f4aeb0Sopenharmony_ci </div> 3902f4aeb0Sopenharmony_ci </div> 4002f4aeb0Sopenharmony_ci <div class="refsect1" id="parameters"> 4102f4aeb0Sopenharmony_ci <h2>Parameters</h2> 4202f4aeb0Sopenharmony_ci <div class="variablelist"> 4302f4aeb0Sopenharmony_ci <dl class="variablelist"> 4402f4aeb0Sopenharmony_ci <dt> 4502f4aeb0Sopenharmony_ci <span class="term"> 4602f4aeb0Sopenharmony_ci <em class="parameter"> 4702f4aeb0Sopenharmony_ci <code>display</code> 4802f4aeb0Sopenharmony_ci </em> 4902f4aeb0Sopenharmony_ci </span> 5002f4aeb0Sopenharmony_ci </dt> 5102f4aeb0Sopenharmony_ci <dd> 5202f4aeb0Sopenharmony_ci <p>Specifies the EGL display connection.</p> 5302f4aeb0Sopenharmony_ci </dd> 5402f4aeb0Sopenharmony_ci <dt> 5502f4aeb0Sopenharmony_ci <span class="term"> 5602f4aeb0Sopenharmony_ci <em class="parameter"> 5702f4aeb0Sopenharmony_ci <code>surface</code> 5802f4aeb0Sopenharmony_ci </em> 5902f4aeb0Sopenharmony_ci </span> 6002f4aeb0Sopenharmony_ci </dt> 6102f4aeb0Sopenharmony_ci <dd> 6202f4aeb0Sopenharmony_ci <p> 6302f4aeb0Sopenharmony_ci Specifies the EGL surface. 6402f4aeb0Sopenharmony_ci </p> 6502f4aeb0Sopenharmony_ci </dd> 6602f4aeb0Sopenharmony_ci <dt> 6702f4aeb0Sopenharmony_ci <span class="term"> 6802f4aeb0Sopenharmony_ci <em class="parameter"> 6902f4aeb0Sopenharmony_ci <code>buffer</code> 7002f4aeb0Sopenharmony_ci </em> 7102f4aeb0Sopenharmony_ci </span> 7202f4aeb0Sopenharmony_ci </dt> 7302f4aeb0Sopenharmony_ci <dd> 7402f4aeb0Sopenharmony_ci <p>Specifies the texture image data.</p> 7502f4aeb0Sopenharmony_ci </dd> 7602f4aeb0Sopenharmony_ci </dl> 7702f4aeb0Sopenharmony_ci </div> 7802f4aeb0Sopenharmony_ci </div> 7902f4aeb0Sopenharmony_ci <div class="refsect1" id="description"> 8002f4aeb0Sopenharmony_ci <h2>Description</h2> 8102f4aeb0Sopenharmony_ci <p> 8202f4aeb0Sopenharmony_ci The specified color buffer is released back to the surface. The surface is made 8302f4aeb0Sopenharmony_ci available for reading and writing when it no longer has any color buffers bound as 8402f4aeb0Sopenharmony_ci textures. 8502f4aeb0Sopenharmony_ci </p> 8602f4aeb0Sopenharmony_ci </div> 8702f4aeb0Sopenharmony_ci <div class="refsect1" id="notes"> 8802f4aeb0Sopenharmony_ci <h2>Notes</h2> 8902f4aeb0Sopenharmony_ci <p> 9002f4aeb0Sopenharmony_ci If the specified color buffer is no longer bound to a texture (e.g., because the 9102f4aeb0Sopenharmony_ci texture object was deleted) then eglReleaseTexImage has no effect. No error is 9202f4aeb0Sopenharmony_ci generated. 9302f4aeb0Sopenharmony_ci </p> 9402f4aeb0Sopenharmony_ci <p> 9502f4aeb0Sopenharmony_ci The contents of the color buffer are undefined when it is first released. In particular, 9602f4aeb0Sopenharmony_ci there is no guarantee that the texture image is still present. However, the contents of 9702f4aeb0Sopenharmony_ci other color buffers are unaffected by this call. Also, the contents of the depth and stencil buffers 9802f4aeb0Sopenharmony_ci are not affected by <a class="citerefentry" href="eglBindTexImage.xhtml"><span class="citerefentry"><span class="refentrytitle">eglBindTexImage</span></span></a> 9902f4aeb0Sopenharmony_ci and <code class="function">eglReleaseTexImage</code>. 10002f4aeb0Sopenharmony_ci </p> 10102f4aeb0Sopenharmony_ci <p> 10202f4aeb0Sopenharmony_ci After a color buffer is released from a texture (either explicitly by calling 10302f4aeb0Sopenharmony_ci <code class="function">eglReleaseTexImage</code> or implicitly by calling a routine such as 10402f4aeb0Sopenharmony_ci <a class="citerefentry" href="glTexImage2D.xhtml"><span class="citerefentry"><span class="refentrytitle">glTexImage2D</span></span></a>), 10502f4aeb0Sopenharmony_ci all texture images that were defined by the color buffer become <code class="constant">NULL</code> 10602f4aeb0Sopenharmony_ci (it is as if <a class="citerefentry" href="glTexImage.xhtml"><span class="citerefentry"><span class="refentrytitle">glTexImage</span></span></a> was called with an image of zero width). 10702f4aeb0Sopenharmony_ci </p> 10802f4aeb0Sopenharmony_ci </div> 10902f4aeb0Sopenharmony_ci <div class="refsect1" id="errors"> 11002f4aeb0Sopenharmony_ci <h2>Errors</h2> 11102f4aeb0Sopenharmony_ci <p> 11202f4aeb0Sopenharmony_ci <code class="constant">EGL_BAD_MATCH</code> is generated if the 11302f4aeb0Sopenharmony_ci surface attribute <code class="constant">EGL_TEXTURE_FORMAT</code> is 11402f4aeb0Sopenharmony_ci set to <code class="constant">EGL_NO_TEXTURE</code>. 11502f4aeb0Sopenharmony_ci </p> 11602f4aeb0Sopenharmony_ci <p> 11702f4aeb0Sopenharmony_ci <code class="constant">EGL_BAD_MATCH</code> is generated if 11802f4aeb0Sopenharmony_ci <em class="parameter"><code>buffer</code></em> is not a valid buffer 11902f4aeb0Sopenharmony_ci (currently only <code class="constant">EGL_BACK_BUFFER</code> may be 12002f4aeb0Sopenharmony_ci specified). 12102f4aeb0Sopenharmony_ci </p> 12202f4aeb0Sopenharmony_ci <p> 12302f4aeb0Sopenharmony_ci <code class="constant">EGL_BAD_SURFACE</code> is generated if 12402f4aeb0Sopenharmony_ci <em class="parameter"><code>surface</code></em> is not an EGL surface, or is 12502f4aeb0Sopenharmony_ci not a bound pbuffer surface. 12602f4aeb0Sopenharmony_ci </p> 12702f4aeb0Sopenharmony_ci </div> 12802f4aeb0Sopenharmony_ci <div class="refsect1" id="seealso"> 12902f4aeb0Sopenharmony_ci <h2>See Also</h2> 13002f4aeb0Sopenharmony_ci <p> 13102f4aeb0Sopenharmony_ci <a class="citerefentry" href="eglBindTexImage.xhtml"><span class="citerefentry"><span class="refentrytitle">eglBindTexImage</span></span></a> 13202f4aeb0Sopenharmony_ci </p> 13302f4aeb0Sopenharmony_ci </div> 13402f4aeb0Sopenharmony_ci <p> 13502f4aeb0Sopenharmony_ci </p> 13602f4aeb0Sopenharmony_ci <div class="refsect3" id="copyright"> 13702f4aeb0Sopenharmony_ci <img src="KhronosLogo.jpg"/> 13802f4aeb0Sopenharmony_ci <p> 13902f4aeb0Sopenharmony_ci Copyright © 2003-2014 The Khronos Group Inc. 14002f4aeb0Sopenharmony_ci Permission is hereby granted, free of charge, to any person obtaining a 14102f4aeb0Sopenharmony_ci copy of this software and/or associated documentation files (the 14202f4aeb0Sopenharmony_ci "Materials"), to deal in the Materials without restriction, including 14302f4aeb0Sopenharmony_ci without limitation the rights to use, copy, modify, merge, publish, 14402f4aeb0Sopenharmony_ci distribute, sublicense, and/or sell copies of the Materials, and to 14502f4aeb0Sopenharmony_ci permit persons to whom the Materials are furnished to do so, subject to 14602f4aeb0Sopenharmony_ci the condition that this copyright notice and permission notice shall be included 14702f4aeb0Sopenharmony_ci in all copies or substantial portions of the Materials. 14802f4aeb0Sopenharmony_ci </p> 14902f4aeb0Sopenharmony_ci </div> 15002f4aeb0Sopenharmony_ci <p> 15102f4aeb0Sopenharmony_ci</p> 15202f4aeb0Sopenharmony_ci </div> 15302f4aeb0Sopenharmony_ci <footer/> 15402f4aeb0Sopenharmony_ci </body> 15502f4aeb0Sopenharmony_ci</html> 156