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">eglGetCurrentSurface - 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="eglGetCurrentSurface">
1102f4aeb0Sopenharmony_ci      <div class="titlepage"/>
1202f4aeb0Sopenharmony_ci      <div class="refnamediv">
1302f4aeb0Sopenharmony_ci        <h2>Name</h2>
1402f4aeb0Sopenharmony_ci        <p>eglGetCurrentSurface — 
1502f4aeb0Sopenharmony_ci            return the read or draw surface for the current <abbr class="acronym">EGL</abbr> rendering context
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">EGLSurface <strong class="fsfunc">eglGetCurrentSurface</strong>(</code>
2502f4aeb0Sopenharmony_ci              </td>
2602f4aeb0Sopenharmony_ci              <td>EGLint <var class="pdparam">readdraw</var><code>)</code>;</td>
2702f4aeb0Sopenharmony_ci            </tr>
2802f4aeb0Sopenharmony_ci          </table>
2902f4aeb0Sopenharmony_ci          <div class="funcprototype-spacer"> </div>
3002f4aeb0Sopenharmony_ci        </div>
3102f4aeb0Sopenharmony_ci      </div>
3202f4aeb0Sopenharmony_ci      <div class="refsect1" id="parameters">
3302f4aeb0Sopenharmony_ci        <h2>Parameters</h2>
3402f4aeb0Sopenharmony_ci        <div class="variablelist">
3502f4aeb0Sopenharmony_ci          <dl class="variablelist">
3602f4aeb0Sopenharmony_ci            <dt>
3702f4aeb0Sopenharmony_ci              <span class="term">
3802f4aeb0Sopenharmony_ci                <em class="parameter">
3902f4aeb0Sopenharmony_ci                  <code>readdraw</code>
4002f4aeb0Sopenharmony_ci                </em>
4102f4aeb0Sopenharmony_ci              </span>
4202f4aeb0Sopenharmony_ci            </dt>
4302f4aeb0Sopenharmony_ci            <dd>
4402f4aeb0Sopenharmony_ci              <p>
4502f4aeb0Sopenharmony_ci                        Specifies whether to return the read surface
4602f4aeb0Sopenharmony_ci                        (<code class="constant">EGL_READ</code>) or the draw surface
4702f4aeb0Sopenharmony_ci                        (<code class="constant">EGL_DRAW</code>).
4802f4aeb0Sopenharmony_ci                    </p>
4902f4aeb0Sopenharmony_ci            </dd>
5002f4aeb0Sopenharmony_ci          </dl>
5102f4aeb0Sopenharmony_ci        </div>
5202f4aeb0Sopenharmony_ci      </div>
5302f4aeb0Sopenharmony_ci      <div class="refsect1" id="description">
5402f4aeb0Sopenharmony_ci        <h2>Description</h2>
5502f4aeb0Sopenharmony_ci        <p>
5602f4aeb0Sopenharmony_ci            <code class="function">eglGetCurrentSurface</code> returns the read or draw
5702f4aeb0Sopenharmony_ci            surface attached to the current
5802f4aeb0Sopenharmony_ci            <abbr class="acronym">EGL</abbr> rendering context, as specified by
5902f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a>.
6002f4aeb0Sopenharmony_ci            If no context is current, <code class="constant">EGL_NO_SURFACE</code> is returned.
6102f4aeb0Sopenharmony_ci        </p>
6202f4aeb0Sopenharmony_ci      </div>
6302f4aeb0Sopenharmony_ci      <div class="refsect1" id="seealso">
6402f4aeb0Sopenharmony_ci        <h2>See Also</h2>
6502f4aeb0Sopenharmony_ci        <p>
6602f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglCreatePbufferSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreatePbufferSurface</span></span></a>,
6702f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglCreatePixmapSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreatePixmapSurface</span></span></a>,
6802f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglCreateWindowSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreateWindowSurface</span></span></a>,
6902f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a>    </p>
7002f4aeb0Sopenharmony_ci      </div>
7102f4aeb0Sopenharmony_ci      <p>
7202f4aeb0Sopenharmony_ci    </p>
7302f4aeb0Sopenharmony_ci      <div class="refsect3" id="copyright">
7402f4aeb0Sopenharmony_ci        <img src="KhronosLogo.jpg"/>
7502f4aeb0Sopenharmony_ci        <p>
7602f4aeb0Sopenharmony_ci            Copyright © 2003-2014 The Khronos Group Inc.
7702f4aeb0Sopenharmony_ci            Permission is hereby granted, free of charge, to any person obtaining a
7802f4aeb0Sopenharmony_ci            copy of this software and/or associated documentation files (the
7902f4aeb0Sopenharmony_ci            "Materials"), to deal in the Materials without restriction, including
8002f4aeb0Sopenharmony_ci            without limitation the rights to use, copy, modify, merge, publish,
8102f4aeb0Sopenharmony_ci            distribute, sublicense, and/or sell copies of the Materials, and to
8202f4aeb0Sopenharmony_ci            permit persons to whom the Materials are furnished to do so, subject to
8302f4aeb0Sopenharmony_ci            the condition that this copyright notice and permission notice shall be included
8402f4aeb0Sopenharmony_ci            in all copies or substantial portions of the Materials.
8502f4aeb0Sopenharmony_ci        </p>
8602f4aeb0Sopenharmony_ci      </div>
8702f4aeb0Sopenharmony_ci      <p>
8802f4aeb0Sopenharmony_ci</p>
8902f4aeb0Sopenharmony_ci    </div>
9002f4aeb0Sopenharmony_ci    <footer/>
9102f4aeb0Sopenharmony_ci  </body>
9202f4aeb0Sopenharmony_ci</html>
93