102f4aeb0Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
202f4aeb0Sopenharmony_ci<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd">
302f4aeb0Sopenharmony_ci<!-- saved from url=(0013)about:internet -->
402f4aeb0Sopenharmony_ci<?xml-stylesheet type="text/xsl" href="mathml.xsl"?><html xmlns="http://www.w3.org/1999/xhtml" xmlns:pref="http://www.w3.org/2002/Math/preference" xmlns:xlink="http://www.w3.org/1999/xlink" pref:renderer="mathplayer-dl">
502f4aeb0Sopenharmony_ci  <head>
602f4aeb0Sopenharmony_ci    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
702f4aeb0Sopenharmony_ci    <style xmlns="" type="text/css">
802f4aeb0Sopenharmony_ci    /* This style sets a margin around the entire page */
902f4aeb0Sopenharmony_ci        html, body {
1002f4aeb0Sopenharmony_ci            margin: 10px;
1102f4aeb0Sopenharmony_ci        }
1202f4aeb0Sopenharmony_ci
1302f4aeb0Sopenharmony_ci        p {
1402f4aeb0Sopenharmony_ci            font: normal 16px verdana, sans-serif;
1502f4aeb0Sopenharmony_ci            margin: 0;
1602f4aeb0Sopenharmony_ci            padding-bottom:12px;
1702f4aeb0Sopenharmony_ci        }
1802f4aeb0Sopenharmony_ci
1902f4aeb0Sopenharmony_ci        h1 {
2002f4aeb0Sopenharmony_ci            font: bold 25px verdana, sans-serif;
2102f4aeb0Sopenharmony_ci            margin-top: 0;
2202f4aeb0Sopenharmony_ci            margin-bottom: 3px;
2302f4aeb0Sopenharmony_ci            padding-top: 0;
2402f4aeb0Sopenharmony_ci            padding-bottom: 0;
2502f4aeb0Sopenharmony_ci        }
2602f4aeb0Sopenharmony_ci
2702f4aeb0Sopenharmony_ci        h2 {
2802f4aeb0Sopenharmony_ci            font: bold 19px verdana, sans-serif;
2902f4aeb0Sopenharmony_ci            margin-top: 28px;
3002f4aeb0Sopenharmony_ci            margin-bottom: 3px;
3102f4aeb0Sopenharmony_ci            padding-top: 0; 
3202f4aeb0Sopenharmony_ci            padding-bottom: 0;
3302f4aeb0Sopenharmony_ci        }
3402f4aeb0Sopenharmony_ci
3502f4aeb0Sopenharmony_ci        h3 {
3602f4aeb0Sopenharmony_ci            font: bold 19px verdana, sans-serif !important;
3702f4aeb0Sopenharmony_ci            margin-top: 28px;
3802f4aeb0Sopenharmony_ci            margin-bottom: 3px;
3902f4aeb0Sopenharmony_ci            padding-top: 0;
4002f4aeb0Sopenharmony_ci            padding-bottom: 0;
4102f4aeb0Sopenharmony_ci        }
4202f4aeb0Sopenharmony_ci
4302f4aeb0Sopenharmony_ci        li {
4402f4aeb0Sopenharmony_ci            font: normal 16px verdana, sans-serif;
4502f4aeb0Sopenharmony_ci            margin-top: 0;
4602f4aeb0Sopenharmony_ci            margin-bottom: 18px;
4702f4aeb0Sopenharmony_ci            padding-top: 0;
4802f4aeb0Sopenharmony_ci            padding-bottom: 0;
4902f4aeb0Sopenharmony_ci        }
5002f4aeb0Sopenharmony_ci
5102f4aeb0Sopenharmony_ci        .pdparam {
5202f4aeb0Sopenharmony_ci            font: italic 16px verdana, sans-serif;
5302f4aeb0Sopenharmony_ci        }
5402f4aeb0Sopenharmony_ci                
5502f4aeb0Sopenharmony_ci                .term {
5602f4aeb0Sopenharmony_ci                        font: italic 16px verdana, sans-serif;
5702f4aeb0Sopenharmony_ci                        font-weight: normal;
5802f4aeb0Sopenharmony_ci                }       
5902f4aeb0Sopenharmony_ci                
6002f4aeb0Sopenharmony_ci                .type {
6102f4aeb0Sopenharmony_ci                        font: normal 16px verdana, sans-serif !important;
6202f4aeb0Sopenharmony_ci                }                       
6302f4aeb0Sopenharmony_ci                
6402f4aeb0Sopenharmony_ci                .parameter { 
6502f4aeb0Sopenharmony_ci                        font-style: italic; 
6602f4aeb0Sopenharmony_ci                        }
6702f4aeb0Sopenharmony_ci
6802f4aeb0Sopenharmony_ci        a:link, a:visited {
6902f4aeb0Sopenharmony_ci            color: blue;
7002f4aeb0Sopenharmony_ci            text-decoration: none;
7102f4aeb0Sopenharmony_ci            font: normal 16px;
7202f4aeb0Sopenharmony_ci        }
7302f4aeb0Sopenharmony_ci
7402f4aeb0Sopenharmony_ci        a:hover {
7502f4aeb0Sopenharmony_ci            background-color: #FFFF99;
7602f4aeb0Sopenharmony_ci            font: normal 16px;
7702f4aeb0Sopenharmony_ci        }
7802f4aeb0Sopenharmony_ci
7902f4aeb0Sopenharmony_ci        div.funcsynopsis {
8002f4aeb0Sopenharmony_ci            text-align: left;
8102f4aeb0Sopenharmony_ci            background-color: #e6e6e6;
8202f4aeb0Sopenharmony_ci            font: normal 16px verdana, sans-serif;
8302f4aeb0Sopenharmony_ci                        padding-top: 10px;
8402f4aeb0Sopenharmony_ci                        padding-bottom: 10px;
8502f4aeb0Sopenharmony_ci        }
8602f4aeb0Sopenharmony_ci
8702f4aeb0Sopenharmony_ci        div.funcsynopsis table {
8802f4aeb0Sopenharmony_ci            border-collapse: separate;
8902f4aeb0Sopenharmony_ci            font: normal 16px verdana, sans-serif;
9002f4aeb0Sopenharmony_ci        }
9102f4aeb0Sopenharmony_ci
9202f4aeb0Sopenharmony_ci        div.funcsynopsis td {
9302f4aeb0Sopenharmony_ci            background-color: #e6e6e6;
9402f4aeb0Sopenharmony_ci            border: 0 solid #000;
9502f4aeb0Sopenharmony_ci            padding: 1px;
9602f4aeb0Sopenharmony_ci            font: normal 16px verdana, sans-serif;
9702f4aeb0Sopenharmony_ci        }
9802f4aeb0Sopenharmony_ci
9902f4aeb0Sopenharmony_ci        div.refsect1 {
10002f4aeb0Sopenharmony_ci            font-family: verdana, sans-serif;
10102f4aeb0Sopenharmony_ci            font-size: 16px;
10202f4aeb0Sopenharmony_ci        }
10302f4aeb0Sopenharmony_ci
10402f4aeb0Sopenharmony_ci        code.constant {
10502f4aeb0Sopenharmony_ci            font: normal 16px courier new, monospace !important;
10602f4aeb0Sopenharmony_ci        }
10702f4aeb0Sopenharmony_ci                
10802f4aeb0Sopenharmony_ci                span.errorname {
10902f4aeb0Sopenharmony_ci            font: normal 16px verdana, sans-serif !important;
11002f4aeb0Sopenharmony_ci        }
11102f4aeb0Sopenharmony_ci
11202f4aeb0Sopenharmony_ci        code.function {
11302f4aeb0Sopenharmony_ci            font: bold 16px verdana, sans-serif !important;
11402f4aeb0Sopenharmony_ci        }
11502f4aeb0Sopenharmony_ci                
11602f4aeb0Sopenharmony_ci        b.fsfunc {
11702f4aeb0Sopenharmony_ci            font: bold 16px verdana, sans-serif !important;
11802f4aeb0Sopenharmony_ci        }
11902f4aeb0Sopenharmony_ci                
12002f4aeb0Sopenharmony_ci        code.varname {
12102f4aeb0Sopenharmony_ci            font: italic 16px verdana, sans-serif;
12202f4aeb0Sopenharmony_ci        }
12302f4aeb0Sopenharmony_ci
12402f4aeb0Sopenharmony_ci        code.replaceable {
12502f4aeb0Sopenharmony_ci            font: italic 16px courier new, monospace;
12602f4aeb0Sopenharmony_ci        }
12702f4aeb0Sopenharmony_ci
12802f4aeb0Sopenharmony_ci        code.funcdef {
12902f4aeb0Sopenharmony_ci            font: normal 16px verdana, sans-serif !important;
13002f4aeb0Sopenharmony_ci        }
13102f4aeb0Sopenharmony_ci
13202f4aeb0Sopenharmony_ci        .citerefentry {
13302f4aeb0Sopenharmony_ci            font: normal 16px verdana, sans-serif !important;
13402f4aeb0Sopenharmony_ci        }
13502f4aeb0Sopenharmony_ci
13602f4aeb0Sopenharmony_ci        .parameter {
13702f4aeb0Sopenharmony_ci            font-style: italic;
13802f4aeb0Sopenharmony_ci        }
13902f4aeb0Sopenharmony_ci
14002f4aeb0Sopenharmony_ci        code.fsfunc {
14102f4aeb0Sopenharmony_ci            font: normal 16px verdana, sans-serif !important;
14202f4aeb0Sopenharmony_ci        }
14302f4aeb0Sopenharmony_ci
14402f4aeb0Sopenharmony_ci        /* PARAMETER: This style controls spacing between the terms in Parameter section */
14502f4aeb0Sopenharmony_ci        dt {
14602f4aeb0Sopenharmony_ci            margin-top: 15px;
14702f4aeb0Sopenharmony_ci        }
14802f4aeb0Sopenharmony_ci
14902f4aeb0Sopenharmony_ci        /* TABLES: These styles apply to all tables OTHER than the Synopsis and Example tables */
15002f4aeb0Sopenharmony_ci        div.refsect1 table {
15102f4aeb0Sopenharmony_ci            width: 100%;
15202f4aeb0Sopenharmony_ci                        margin-top: 10px;
15302f4aeb0Sopenharmony_ci            background-color: #FFF;
15402f4aeb0Sopenharmony_ci                        border-collapse: collapse;
15502f4aeb0Sopenharmony_ci                        border-color: #000;
15602f4aeb0Sopenharmony_ci            border-width: 1px;
15702f4aeb0Sopenharmony_ci                        font: normal 16px verdana, sans-serif;
15802f4aeb0Sopenharmony_ci        }
15902f4aeb0Sopenharmony_ci                
16002f4aeb0Sopenharmony_ci        div.refsect1 th {
16102f4aeb0Sopenharmony_ci                        border-collapse: collapse;
16202f4aeb0Sopenharmony_ci                        border-color: #000;
16302f4aeb0Sopenharmony_ci            border-width: 1px;
16402f4aeb0Sopenharmony_ci            font: bold 16px verdana, sans-serif;
16502f4aeb0Sopenharmony_ci        }
16602f4aeb0Sopenharmony_ci                
16702f4aeb0Sopenharmony_ci        div.refsect1 td {
16802f4aeb0Sopenharmony_ci            background-color: #FFF;
16902f4aeb0Sopenharmony_ci            padding: 5px;
17002f4aeb0Sopenharmony_ci            vertical-align: text-top;
17102f4aeb0Sopenharmony_ci                        border-collapse: collapse;
17202f4aeb0Sopenharmony_ci                        border-color: #000;
17302f4aeb0Sopenharmony_ci            border-width: 1px;
17402f4aeb0Sopenharmony_ci            font: normal 16px verdana, sans-serif;
17502f4aeb0Sopenharmony_ci        }
17602f4aeb0Sopenharmony_ci                
17702f4aeb0Sopenharmony_ci                  div.refsect1 p{
17802f4aeb0Sopenharmony_ci            font: normal 16px verdana, sans-serif;
17902f4aeb0Sopenharmony_ci            margin-top: 8px;
18002f4aeb0Sopenharmony_ci            margin-bottom: 8px;
18102f4aeb0Sopenharmony_ci            padding-top: 0;
18202f4aeb0Sopenharmony_ci            padding-bottom: 0;
18302f4aeb0Sopenharmony_ci        }
18402f4aeb0Sopenharmony_ci                
18502f4aeb0Sopenharmony_ci
18602f4aeb0Sopenharmony_ci        /* EXAMPLE: These styles apply only to the Example section */
18702f4aeb0Sopenharmony_ci        div.refsect2 {
18802f4aeb0Sopenharmony_ci            font: normal 16px courier new, monospace !important;
18902f4aeb0Sopenharmony_ci        }
19002f4aeb0Sopenharmony_ci
19102f4aeb0Sopenharmony_ci        div.refsect2 table {
19202f4aeb0Sopenharmony_ci            margin-top: 0;
19302f4aeb0Sopenharmony_ci            background-color: #e6e6e6;
19402f4aeb0Sopenharmony_ci            width: 100%;
19502f4aeb0Sopenharmony_ci            border: 0 solid #000;
19602f4aeb0Sopenharmony_ci            padding: 2px;
19702f4aeb0Sopenharmony_ci            font: normal 16px courier new, monospace !important;
19802f4aeb0Sopenharmony_ci        }
19902f4aeb0Sopenharmony_ci
20002f4aeb0Sopenharmony_ci        div.refsect2 td {
20102f4aeb0Sopenharmony_ci            background-color: #e6e6e6;
20202f4aeb0Sopenharmony_ci            font: normal 16px courier new, monospace !important;
20302f4aeb0Sopenharmony_ci                        white-space:pre;
20402f4aeb0Sopenharmony_ci        }
20502f4aeb0Sopenharmony_ci
20602f4aeb0Sopenharmony_ci        /* COPYRIGHT: This style formats the text of the copyright statement at the bottom of the page */
20702f4aeb0Sopenharmony_ci        div.refsect3 {
20802f4aeb0Sopenharmony_ci            font: normal 11px verdana, sans-serif;
20902f4aeb0Sopenharmony_ci            margin-top: 50px;
21002f4aeb0Sopenharmony_ci            margin-bottom: 20px;
21102f4aeb0Sopenharmony_ci            padding-top: 0;
21202f4aeb0Sopenharmony_ci            padding-bottom: 0;
21302f4aeb0Sopenharmony_ci        }
21402f4aeb0Sopenharmony_ci                                        
21502f4aeb0Sopenharmony_ci</style>
21602f4aeb0Sopenharmony_ci    <title>eglBindTexImage</title>
21702f4aeb0Sopenharmony_ci    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
21802f4aeb0Sopenharmony_ci  </head>
21902f4aeb0Sopenharmony_ci  <body>
22002f4aeb0Sopenharmony_ci    <div class="refentry">
22102f4aeb0Sopenharmony_ci      <a id="eglBindTexImage"></a>
22202f4aeb0Sopenharmony_ci      <div class="titlepage"></div>
22302f4aeb0Sopenharmony_ci      <div xmlns="" class="refnamediv">
22402f4aeb0Sopenharmony_ci        <h1>eglBindTexImage</h1>
22502f4aeb0Sopenharmony_ci        <p>
22602f4aeb0Sopenharmony_ci            Defines a two-dimensional texture image
22702f4aeb0Sopenharmony_ci        </p>
22802f4aeb0Sopenharmony_ci      </div>
22902f4aeb0Sopenharmony_ci      <div class="refsynopsisdiv">
23002f4aeb0Sopenharmony_ci        <h2>C Specification</h2>
23102f4aeb0Sopenharmony_ci        <div class="funcsynopsis">
23202f4aeb0Sopenharmony_ci          <table xmlns="" border="0" summary="Function synopsis" cellspacing="0" cellpadding="0">
23302f4aeb0Sopenharmony_ci            <tr valign="bottom">
23402f4aeb0Sopenharmony_ci              <td>
23502f4aeb0Sopenharmony_ci                <code xmlns="http://www.w3.org/1999/xhtml" class="funcdef">EGLBoolean <strong class="fsfunc">eglBindTexImage</strong>(</code>
23602f4aeb0Sopenharmony_ci                <td>EGLDisplay  <var xmlns="http://www.w3.org/1999/xhtml" class="pdparam">display</var>, </td>
23702f4aeb0Sopenharmony_ci              </td>
23802f4aeb0Sopenharmony_ci            </tr>
23902f4aeb0Sopenharmony_ci            <tr valign="top">
24002f4aeb0Sopenharmony_ci              <td> </td>
24102f4aeb0Sopenharmony_ci              <td>EGLSurface  <var xmlns="http://www.w3.org/1999/xhtml" class="pdparam">surface</var>, </td>
24202f4aeb0Sopenharmony_ci            </tr>
24302f4aeb0Sopenharmony_ci            <tr valign="top">
24402f4aeb0Sopenharmony_ci              <td> </td>
24502f4aeb0Sopenharmony_ci              <td>EGLint  <var xmlns="http://www.w3.org/1999/xhtml" class="pdparam">buffer</var><code>)</code></td>
24602f4aeb0Sopenharmony_ci            </tr>
24702f4aeb0Sopenharmony_ci          </table>
24802f4aeb0Sopenharmony_ci        </div>
24902f4aeb0Sopenharmony_ci      </div>
25002f4aeb0Sopenharmony_ci      <div class="refsect1">
25102f4aeb0Sopenharmony_ci        <a id="parameters"></a>
25202f4aeb0Sopenharmony_ci        <h2>Parameters</h2>
25302f4aeb0Sopenharmony_ci        <div class="variablelist">
25402f4aeb0Sopenharmony_ci          <dl class="variablelist">
25502f4aeb0Sopenharmony_ci            <dt>
25602f4aeb0Sopenharmony_ci              <span class="term">
25702f4aeb0Sopenharmony_ci                <em class="parameter">
25802f4aeb0Sopenharmony_ci                  <code>display</code>
25902f4aeb0Sopenharmony_ci                </em>
26002f4aeb0Sopenharmony_ci              </span>
26102f4aeb0Sopenharmony_ci            </dt>
26202f4aeb0Sopenharmony_ci            <dd>
26302f4aeb0Sopenharmony_ci              <p>Specifies the EGL display connection.</p>
26402f4aeb0Sopenharmony_ci            </dd>
26502f4aeb0Sopenharmony_ci            <dt>
26602f4aeb0Sopenharmony_ci              <span class="term">
26702f4aeb0Sopenharmony_ci                <em class="parameter">
26802f4aeb0Sopenharmony_ci                  <code>surface</code>
26902f4aeb0Sopenharmony_ci                </em>
27002f4aeb0Sopenharmony_ci              </span>
27102f4aeb0Sopenharmony_ci            </dt>
27202f4aeb0Sopenharmony_ci            <dd>
27302f4aeb0Sopenharmony_ci              <p>
27402f4aeb0Sopenharmony_ci                        Specifies the EGL surface.
27502f4aeb0Sopenharmony_ci                    </p>
27602f4aeb0Sopenharmony_ci            </dd>
27702f4aeb0Sopenharmony_ci            <dt>
27802f4aeb0Sopenharmony_ci              <span class="term">
27902f4aeb0Sopenharmony_ci                <em class="parameter">
28002f4aeb0Sopenharmony_ci                  <code>buffer</code>
28102f4aeb0Sopenharmony_ci                </em>
28202f4aeb0Sopenharmony_ci              </span>
28302f4aeb0Sopenharmony_ci            </dt>
28402f4aeb0Sopenharmony_ci            <dd>
28502f4aeb0Sopenharmony_ci              <p>Specifies the texture image data.</p>
28602f4aeb0Sopenharmony_ci            </dd>
28702f4aeb0Sopenharmony_ci          </dl>
28802f4aeb0Sopenharmony_ci        </div>
28902f4aeb0Sopenharmony_ci      </div>
29002f4aeb0Sopenharmony_ci      <div class="refsect1">
29102f4aeb0Sopenharmony_ci        <a id="description"></a>
29202f4aeb0Sopenharmony_ci        <h2>Description</h2>
29302f4aeb0Sopenharmony_ci        <p>
29402f4aeb0Sopenharmony_ci            The texture image consists of the image data in <em class="parameter"><code>buffer</code></em> for the specified surface, and need not be copied.
29502f4aeb0Sopenharmony_ci        </p>
29602f4aeb0Sopenharmony_ci        <p>
29702f4aeb0Sopenharmony_ci            The texture target, the texture format and the size of the texture components are derived from
29802f4aeb0Sopenharmony_ci            attributes of the specified surface, which must be a pbuffer supporting one of the
29902f4aeb0Sopenharmony_ci            <code class="constant">EGL_BIND_TO_TEXTURE_RGB</code> or <code class="constant">EGL_BIND_TO_TEXTURE_RGBA</code> attributes.
30002f4aeb0Sopenharmony_ci        </p>
30102f4aeb0Sopenharmony_ci        <p>
30202f4aeb0Sopenharmony_ci            The pbuffer attribute <code class="constant">EGL_TEXTURE_FORMAT</code> determines the base internal format
30302f4aeb0Sopenharmony_ci            of the texture.
30402f4aeb0Sopenharmony_ci        </p>
30502f4aeb0Sopenharmony_ci        <p>
30602f4aeb0Sopenharmony_ci            The texture target is derived from the <code class="constant">EGL_TEXTURE_TARGET</code> attribute of surface.
30702f4aeb0Sopenharmony_ci            If the attribute value is <code class="constant">EGL_TEXTURE_2D</code>, then <em class="parameter"><code>buffer</code></em> defines a texture for
30802f4aeb0Sopenharmony_ci            the two-dimensional texture object which is bound to the current context (hereafter
30902f4aeb0Sopenharmony_ci            referred to as the current texture object).
31002f4aeb0Sopenharmony_ci        </p>
31102f4aeb0Sopenharmony_ci        <p>
31202f4aeb0Sopenharmony_ci            If <em class="parameter"><code>display</code></em> and <em class="parameter"><code>surface</code></em> are the display and surface for the calling thread's current
31302f4aeb0Sopenharmony_ci            context, <code class="function">eglBindTexImage</code> performs an implicit <a class="citerefentry" href="glFlush.html"><span class="citerefentry"><span class="refentrytitle">glFlush</span></span></a>.
31402f4aeb0Sopenharmony_ci            For other surfaces, <code class="function">eglBindTexImage</code> waits for all effects from previously issued OpenGL ES commands
31502f4aeb0Sopenharmony_ci            drawing to the surface to complete before defining the texture image, as
31602f4aeb0Sopenharmony_ci            though <a class="citerefentry" href="glFinish.html"><span class="citerefentry"><span class="refentrytitle">glFinish</span></span></a>  were called on the last context to which that surface were bound.
31702f4aeb0Sopenharmony_ci        </p>
31802f4aeb0Sopenharmony_ci        <p>
31902f4aeb0Sopenharmony_ci            After <code class="function">eglBindTexImage</code> is called, the specified surface is no longer available
32002f4aeb0Sopenharmony_ci            for reading or writing. Any read operation, such as <a class="citerefentry" href="glReadPixels.html"><span class="citerefentry"><span class="refentrytitle">glReadPixels</span></span></a> or
32102f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglCopyBuffers.html"><span class="citerefentry"><span class="refentrytitle">eglCopyBuffers</span></span></a>, which reads values from any of the surface's color buffers or ancillary
32202f4aeb0Sopenharmony_ci            buffers will produce indeterminate results. In addition, draw operations that are
32302f4aeb0Sopenharmony_ci            done to the surface before its color buffer is released from the texture produce indeterminate
32402f4aeb0Sopenharmony_ci            results. Specifically, if the surface is current to a context and thread
32502f4aeb0Sopenharmony_ci            then rendering commands will be processed and the context state will be updated,
32602f4aeb0Sopenharmony_ci            but the surface may or may not be written.
32702f4aeb0Sopenharmony_ci        </p>
32802f4aeb0Sopenharmony_ci        <p>
32902f4aeb0Sopenharmony_ci            Texture mipmap levels are automatically generated when all of the following
33002f4aeb0Sopenharmony_ci            conditions are met while calling <code class="function">eglBindTexImage</code>:
33102f4aeb0Sopenharmony_ci        </p>
33202f4aeb0Sopenharmony_ci        <div class="itemizedlist">
33302f4aeb0Sopenharmony_ci          <ul class="itemizedlist" style="list-style-type: disc; ">
33402f4aeb0Sopenharmony_ci            <li class="listitem">
33502f4aeb0Sopenharmony_ci              <p>
33602f4aeb0Sopenharmony_ci            The <code class="constant">EGL_MIPMAP_TEXTURE</code> attribute of the pbuffer being bound is
33702f4aeb0Sopenharmony_ci            <code class="constant">EGL_TRUE</code>.
33802f4aeb0Sopenharmony_ci        </p>
33902f4aeb0Sopenharmony_ci            </li>
34002f4aeb0Sopenharmony_ci            <li class="listitem">
34102f4aeb0Sopenharmony_ci              <p>
34202f4aeb0Sopenharmony_ci            The OpenGL ES texture parameter <code class="constant">GL_GENERATE_MIPMAP</code> is <code class="constant">GL_TRUE</code> for
34302f4aeb0Sopenharmony_ci            the currently bound texture.
34402f4aeb0Sopenharmony_ci        </p>
34502f4aeb0Sopenharmony_ci            </li>
34602f4aeb0Sopenharmony_ci            <li class="listitem">
34702f4aeb0Sopenharmony_ci              <p>
34802f4aeb0Sopenharmony_ci            The value of the <code class="constant">EGL_MIPMAP_LEVEL</code> attribute of the pbuffer being bound is
34902f4aeb0Sopenharmony_ci            equal to the value of the texture parameter <code class="constant">GL_TEXTURE_BASE_LEVEL</code>.
35002f4aeb0Sopenharmony_ci            In this case, additional mipmap levels are generated as described in section 3.8
35102f4aeb0Sopenharmony_ci            of the OpenGL ES 1.1 Specification.
35202f4aeb0Sopenharmony_ci        </p>
35302f4aeb0Sopenharmony_ci            </li>
35402f4aeb0Sopenharmony_ci          </ul>
35502f4aeb0Sopenharmony_ci        </div>
35602f4aeb0Sopenharmony_ci        <p>
35702f4aeb0Sopenharmony_ci            In this case, additional mipmap levels are generated as described in section 3.8
35802f4aeb0Sopenharmony_ci            of the OpenGL ES 1.1 Specification.
35902f4aeb0Sopenharmony_ci        </p>
36002f4aeb0Sopenharmony_ci      </div>
36102f4aeb0Sopenharmony_ci      <div class="refsect1">
36202f4aeb0Sopenharmony_ci        <a id="notes"></a>
36302f4aeb0Sopenharmony_ci        <h2>Notes</h2>
36402f4aeb0Sopenharmony_ci        <p>
36502f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglSwapBuffers.html"><span class="citerefentry"><span class="refentrytitle">eglSwapBuffers</span></span></a> has no effect if it is
36602f4aeb0Sopenharmony_ci            called on a bound surface.
36702f4aeb0Sopenharmony_ci        </p>
36802f4aeb0Sopenharmony_ci        <p>
36902f4aeb0Sopenharmony_ci            Any existing images associated with the different mipmap levels of the texture object
37002f4aeb0Sopenharmony_ci            are freed (it is as if <a class="citerefentry" href="glTexImage.html"><span class="citerefentry"><span class="refentrytitle">glTexImage</span></span></a>
37102f4aeb0Sopenharmony_ci            was called with an image of zero width).
37202f4aeb0Sopenharmony_ci        </p>
37302f4aeb0Sopenharmony_ci        <p>
37402f4aeb0Sopenharmony_ci            The color buffer is bound to a texture object. If the texture object is
37502f4aeb0Sopenharmony_ci            shared between contexts, then the color buffer is also shared. If a texture object is
37602f4aeb0Sopenharmony_ci            deleted before <a class="citerefentry" href="eglReleaseTexImage.html"><span class="citerefentry"><span class="refentrytitle">eglReleaseTexImage</span></span></a> is called, then the color buffer is released and
37702f4aeb0Sopenharmony_ci            the surface is made available for reading and writing.
37802f4aeb0Sopenharmony_ci        </p>
37902f4aeb0Sopenharmony_ci        <p>
38002f4aeb0Sopenharmony_ci            It is not an error to call <a class="citerefentry" href="glTexImage2D.html"><span class="citerefentry"><span class="refentrytitle">glTexImage2D</span></span></a> or
38102f4aeb0Sopenharmony_ci            <a class="citerefentry" href="glCopyTexImage2D.html"><span class="citerefentry"><span class="refentrytitle">glCopyTexImage2D</span></span></a> to replace an
38202f4aeb0Sopenharmony_ci            image of a texture object that has a color buffer bound to it. However, these calls
38302f4aeb0Sopenharmony_ci            will cause the color buffer to be released back to the surface and new memory will
38402f4aeb0Sopenharmony_ci            be allocated for the texture. Note that the color buffer is released even if the image
38502f4aeb0Sopenharmony_ci            that is being defined is a mipmap level that was not defined by the color buffer.
38602f4aeb0Sopenharmony_ci        </p>
38702f4aeb0Sopenharmony_ci        <p>
38802f4aeb0Sopenharmony_ci            <code class="function">eglBindTexImage</code> is ignored if there is no current rendering context.
38902f4aeb0Sopenharmony_ci        </p>
39002f4aeb0Sopenharmony_ci      </div>
39102f4aeb0Sopenharmony_ci      <div class="refsect1">
39202f4aeb0Sopenharmony_ci        <a id="errors"></a>
39302f4aeb0Sopenharmony_ci        <h2>Errors</h2>
39402f4aeb0Sopenharmony_ci        <p>
39502f4aeb0Sopenharmony_ci            <code class="constant">EGL_BAD_ACCESS</code> is generated if
39602f4aeb0Sopenharmony_ci            <em class="parameter"><code>buffer</code></em> is already bound to a texture.
39702f4aeb0Sopenharmony_ci        </p>
39802f4aeb0Sopenharmony_ci        <p>
39902f4aeb0Sopenharmony_ci            <code class="constant">EGL_BAD_MATCH</code> is generated if the
40002f4aeb0Sopenharmony_ci            surface attribute <code class="constant">EGL_TEXTURE_FORMAT</code> is
40102f4aeb0Sopenharmony_ci            set to <code class="constant">EGL_NO_TEXTURE</code>.
40202f4aeb0Sopenharmony_ci        </p>
40302f4aeb0Sopenharmony_ci        <p>
40402f4aeb0Sopenharmony_ci            <code class="constant">EGL_BAD_MATCH</code> is generated if
40502f4aeb0Sopenharmony_ci            <em class="parameter"><code>buffer</code></em> is not a valid buffer
40602f4aeb0Sopenharmony_ci            (currently only <code class="constant">EGL_BACK_BUFFER</code> may be
40702f4aeb0Sopenharmony_ci            specified).
40802f4aeb0Sopenharmony_ci        </p>
40902f4aeb0Sopenharmony_ci        <p>
41002f4aeb0Sopenharmony_ci            <code class="constant">EGL_BAD_SURFACE</code> is generated if
41102f4aeb0Sopenharmony_ci            <em class="parameter"><code>surface</code></em> is not an EGL surface, or is
41202f4aeb0Sopenharmony_ci            not a pbuffer surface supporting texture binding.
41302f4aeb0Sopenharmony_ci        </p>
41402f4aeb0Sopenharmony_ci      </div>
41502f4aeb0Sopenharmony_ci      <div class="refsect1">
41602f4aeb0Sopenharmony_ci        <a id="seealso"></a>
41702f4aeb0Sopenharmony_ci        <h2>See Also</h2>
41802f4aeb0Sopenharmony_ci        <p>
41902f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglReleaseTexImage.html"><span class="citerefentry"><span class="refentrytitle">eglReleaseTexImage</span></span></a>
42002f4aeb0Sopenharmony_ci        </p>
42102f4aeb0Sopenharmony_ci      </div>
42202f4aeb0Sopenharmony_ci      <div xmlns="" class="refsect3" lang="en" xml:lang="en"><a xmlns="http://www.w3.org/1999/xhtml" id="Copyright"></a><h4 xmlns="http://www.w3.org/1999/xhtml"></h4><img xmlns="http://www.w3.org/1999/xhtml" src="KhronosLogo.jpg" /><p xmlns="http://www.w3.org/1999/xhtml"></p>
42302f4aeb0Sopenharmony_ciCopyright © 2003-2014 The Khronos Group Inc.
42402f4aeb0Sopenharmony_ciPermission is hereby granted, free of charge, to any person obtaining a
42502f4aeb0Sopenharmony_cicopy of this software and/or associated documentation files (the
42602f4aeb0Sopenharmony_ci"Materials"), to deal in the Materials without restriction, including
42702f4aeb0Sopenharmony_ciwithout limitation the rights to use, copy, modify, merge, publish,
42802f4aeb0Sopenharmony_cidistribute, sublicense, and/or sell copies of the Materials, and to
42902f4aeb0Sopenharmony_cipermit persons to whom the Materials are furnished to do so, subject to
43002f4aeb0Sopenharmony_cithe condition that this copyright notice and permission notice shall be included
43102f4aeb0Sopenharmony_ciin all copies or substantial portions of the Materials.
43202f4aeb0Sopenharmony_ci</div>
43302f4aeb0Sopenharmony_ci    </div>
43402f4aeb0Sopenharmony_ci  </body>
43502f4aeb0Sopenharmony_ci</html>
436