102f4aeb0Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
202f4aeb0Sopenharmony_ci<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
302f4aeb0Sopenharmony_ci                            "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
402f4aeb0Sopenharmony_ci<refentry xml:base="" id="eglGetCurrentSurface">
502f4aeb0Sopenharmony_ci    <refentryinfo>
602f4aeb0Sopenharmony_ci         <copyright>
702f4aeb0Sopenharmony_ci             <year>2003-2014</year>
802f4aeb0Sopenharmony_ci             <holder>The Khronos Group Inc.</holder>
902f4aeb0Sopenharmony_ci         </copyright>
1002f4aeb0Sopenharmony_ci    </refentryinfo>
1102f4aeb0Sopenharmony_ci    <refmeta>
1202f4aeb0Sopenharmony_ci        <refentrytitle>eglGetCurrentSurface</refentrytitle>
1302f4aeb0Sopenharmony_ci        <manvolnum>3G</manvolnum>
1402f4aeb0Sopenharmony_ci    </refmeta>
1502f4aeb0Sopenharmony_ci    <refnamediv>
1602f4aeb0Sopenharmony_ci        <refname>eglGetCurrentSurface</refname>
1702f4aeb0Sopenharmony_ci        <refpurpose>
1802f4aeb0Sopenharmony_ci            return the read or draw surface for the current <acronym>EGL</acronym> rendering context
1902f4aeb0Sopenharmony_ci        </refpurpose>
2002f4aeb0Sopenharmony_ci    </refnamediv>
2102f4aeb0Sopenharmony_ci    <refsynopsisdiv>
2202f4aeb0Sopenharmony_ci        <title>C Specification</title>
2302f4aeb0Sopenharmony_ci        <funcsynopsis>
2402f4aeb0Sopenharmony_ci            <funcprototype>
2502f4aeb0Sopenharmony_ci                <funcdef>EGLSurface <function>eglGetCurrentSurface</function></funcdef>
2602f4aeb0Sopenharmony_ci                <paramdef>EGLint <parameter>readdraw</parameter></paramdef>
2702f4aeb0Sopenharmony_ci            </funcprototype>
2802f4aeb0Sopenharmony_ci        </funcsynopsis>
2902f4aeb0Sopenharmony_ci    </refsynopsisdiv>
3002f4aeb0Sopenharmony_ci    <refsect1 id="parameters"><title>Parameters</title>
3102f4aeb0Sopenharmony_ci        <variablelist>
3202f4aeb0Sopenharmony_ci            <varlistentry>
3302f4aeb0Sopenharmony_ci                <term><parameter>readdraw</parameter></term>
3402f4aeb0Sopenharmony_ci                <listitem>
3502f4aeb0Sopenharmony_ci                    <para>
3602f4aeb0Sopenharmony_ci                        Specifies whether the <acronym>EGL</acronym> read or draw surface
3702f4aeb0Sopenharmony_ci                        is to be returned.
3802f4aeb0Sopenharmony_ci                    </para>
3902f4aeb0Sopenharmony_ci                </listitem>
4002f4aeb0Sopenharmony_ci            </varlistentry>
4102f4aeb0Sopenharmony_ci        </variablelist>
4202f4aeb0Sopenharmony_ci    </refsect1>
4302f4aeb0Sopenharmony_ci    <refsect1 id="description"><title>Description</title>
4402f4aeb0Sopenharmony_ci        <para>
4502f4aeb0Sopenharmony_ci            <function>eglGetCurrentSurface</function> returns the read or draw
4602f4aeb0Sopenharmony_ci            surface attached to the current
4702f4aeb0Sopenharmony_ci            <acronym>EGL</acronym> rendering context, as specified by
4802f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglMakeCurrent</refentrytitle></citerefentry>.
4902f4aeb0Sopenharmony_ci            If no context is current, <constant>EGL_NO_SURFACE</constant> is returned.
5002f4aeb0Sopenharmony_ci        </para>
5102f4aeb0Sopenharmony_ci    </refsect1>
5202f4aeb0Sopenharmony_ci    <refsect1 id="seealso"><title>See Also</title>
5302f4aeb0Sopenharmony_ci        <para>
5402f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglCreatePbufferSurface</refentrytitle></citerefentry>,
5502f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglCreatePixmapSurface</refentrytitle></citerefentry>,
5602f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglCreateWindowSurface</refentrytitle></citerefentry>,
5702f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglMakeCurrent</refentrytitle></citerefentry>    </para>
5802f4aeb0Sopenharmony_ci    </refsect1>
5902f4aeb0Sopenharmony_ci    <refsect3 id="Copyright"><title></title>
6002f4aeb0Sopenharmony_ci        <!-- Content included from copyright.inc.xsl -->
6102f4aeb0Sopenharmony_ci        <imageobject>
6202f4aeb0Sopenharmony_ci                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
6302f4aeb0Sopenharmony_ci        </imageobject>
6402f4aeb0Sopenharmony_ci        <para />
6502f4aeb0Sopenharmony_ci    </refsect3>
6602f4aeb0Sopenharmony_ci</refentry>
67