• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3                            "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4<refentry xml:base="" id="eglGetCurrentSurface">
5    <refentryinfo>
6         <copyright>
7             <year>2003-2014</year>
8             <holder>The Khronos Group Inc.</holder>
9         </copyright>
10    </refentryinfo>
11    <refmeta>
12        <refentrytitle>eglGetCurrentSurface</refentrytitle>
13        <manvolnum>3G</manvolnum>
14    </refmeta>
15    <refnamediv>
16        <refname>eglGetCurrentSurface</refname>
17        <refpurpose>
18            return the read or draw surface for the current <acronym>EGL</acronym> rendering context
19        </refpurpose>
20    </refnamediv>
21    <refsynopsisdiv>
22        <title>C Specification</title>
23        <funcsynopsis>
24            <funcprototype>
25                <funcdef>EGLSurface <function>eglGetCurrentSurface</function></funcdef>
26                <paramdef>EGLint <parameter>readdraw</parameter></paramdef>
27            </funcprototype>
28        </funcsynopsis>
29    </refsynopsisdiv>
30    <refsect1 id="parameters"><title>Parameters</title>
31        <variablelist>
32            <varlistentry>
33                <term><parameter>readdraw</parameter></term>
34                <listitem>
35                    <para>
36                        Specifies whether the <acronym>EGL</acronym> read or draw surface
37                        is to be returned.
38                    </para>
39                </listitem>
40            </varlistentry>
41        </variablelist>
42    </refsect1>
43    <refsect1 id="description"><title>Description</title>
44        <para>
45            <function>eglGetCurrentSurface</function> returns the read or draw
46            surface attached to the current
47            <acronym>EGL</acronym> rendering context, as specified by
48            <citerefentry><refentrytitle>eglMakeCurrent</refentrytitle></citerefentry>.
49            If no context is current, <constant>EGL_NO_SURFACE</constant> is returned.
50        </para>
51    </refsect1>
52    <refsect1 id="seealso"><title>See Also</title>
53        <para>
54            <citerefentry><refentrytitle>eglCreatePbufferSurface</refentrytitle></citerefentry>,
55            <citerefentry><refentrytitle>eglCreatePixmapSurface</refentrytitle></citerefentry>,
56            <citerefentry><refentrytitle>eglCreateWindowSurface</refentrytitle></citerefentry>,
57            <citerefentry><refentrytitle>eglMakeCurrent</refentrytitle></citerefentry>    </para>
58    </refsect1>
59    <refsect3 id="Copyright"><title></title>
60        <!-- Content included from copyright.inc.xsl -->
61        <imageobject>
62                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
63        </imageobject>
64        <para />
65    </refsect3>
66</refentry>
67