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="eglCopyBuffers"> 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>eglCopyBuffers</refentrytitle> 1302f4aeb0Sopenharmony_ci <manvolnum>3G</manvolnum> 1402f4aeb0Sopenharmony_ci </refmeta> 1502f4aeb0Sopenharmony_ci <refnamediv> 1602f4aeb0Sopenharmony_ci <refname>eglCopyBuffers</refname> 1702f4aeb0Sopenharmony_ci <refpurpose> 1802f4aeb0Sopenharmony_ci copy <acronym>EGL</acronym> surface color buffer to a native pixmap 1902f4aeb0Sopenharmony_ci </refpurpose> 2002f4aeb0Sopenharmony_ci </refnamediv> 2102f4aeb0Sopenharmony_ci <refsynopsisdiv> 2202f4aeb0Sopenharmony_ci <title>C Specification</title> 2302f4aeb0Sopenharmony_ci <funcsynopsis> 2402f4aeb0Sopenharmony_ci <funcprototype> 2502f4aeb0Sopenharmony_ci <funcdef>EGLBoolean <function>eglCopyBuffers</function></funcdef> 2602f4aeb0Sopenharmony_ci <paramdef>EGLDisplay <parameter>display</parameter></paramdef> 2702f4aeb0Sopenharmony_ci <paramdef>EGLSurface <parameter>surface</parameter></paramdef> 2802f4aeb0Sopenharmony_ci <paramdef>NativePixmapType <parameter>native_pixmap</parameter></paramdef> 2902f4aeb0Sopenharmony_ci </funcprototype> 3002f4aeb0Sopenharmony_ci </funcsynopsis> 3102f4aeb0Sopenharmony_ci </refsynopsisdiv> 3202f4aeb0Sopenharmony_ci <refsect1 id="parameters"><title>Parameters</title> 3302f4aeb0Sopenharmony_ci <variablelist> 3402f4aeb0Sopenharmony_ci <varlistentry> 3502f4aeb0Sopenharmony_ci <term><parameter>display</parameter></term> 3602f4aeb0Sopenharmony_ci <listitem> 3702f4aeb0Sopenharmony_ci <para> 3802f4aeb0Sopenharmony_ci Specifies the EGL display connection. 3902f4aeb0Sopenharmony_ci </para> 4002f4aeb0Sopenharmony_ci </listitem> 4102f4aeb0Sopenharmony_ci </varlistentry> 4202f4aeb0Sopenharmony_ci <varlistentry> 4302f4aeb0Sopenharmony_ci <term><parameter>surface</parameter></term> 4402f4aeb0Sopenharmony_ci <listitem> 4502f4aeb0Sopenharmony_ci <para> 4602f4aeb0Sopenharmony_ci Specifies the EGL surface whose color buffer is to be copied. 4702f4aeb0Sopenharmony_ci </para> 4802f4aeb0Sopenharmony_ci </listitem> 4902f4aeb0Sopenharmony_ci </varlistentry> 5002f4aeb0Sopenharmony_ci <varlistentry> 5102f4aeb0Sopenharmony_ci <term><parameter>native_pixmap</parameter></term> 5202f4aeb0Sopenharmony_ci <listitem> 5302f4aeb0Sopenharmony_ci <para> 5402f4aeb0Sopenharmony_ci Specifies the native pixmap as target of the copy. 5502f4aeb0Sopenharmony_ci </para> 5602f4aeb0Sopenharmony_ci </listitem> 5702f4aeb0Sopenharmony_ci </varlistentry> 5802f4aeb0Sopenharmony_ci </variablelist> 5902f4aeb0Sopenharmony_ci </refsect1> 6002f4aeb0Sopenharmony_ci <refsect1 id="description"><title>Description</title> 6102f4aeb0Sopenharmony_ci <para> 6202f4aeb0Sopenharmony_ci <function>eglCopyBuffers</function> copies the color buffer of 6302f4aeb0Sopenharmony_ci <parameter>surface</parameter> to <parameter>native_pixmap</parameter>. 6402f4aeb0Sopenharmony_ci </para> 6502f4aeb0Sopenharmony_ci <para> 6602f4aeb0Sopenharmony_ci <function>eglCopyBuffers</function> performs an implicit 6702f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>glFlush</refentrytitle></citerefentry> 6802f4aeb0Sopenharmony_ci before it returns. Subsequent 6902f4aeb0Sopenharmony_ci GL commands may be issued immediately after calling 7002f4aeb0Sopenharmony_ci <function>eglCopyBuffers</function>, 7102f4aeb0Sopenharmony_ci but are not executed until copying of the color buffer is completed. 7202f4aeb0Sopenharmony_ci </para> 7302f4aeb0Sopenharmony_ci </refsect1> 7402f4aeb0Sopenharmony_ci <refsect1 id="notes"><title>Notes</title> 7502f4aeb0Sopenharmony_ci <para> 7602f4aeb0Sopenharmony_ci The color buffer of <parameter>surface</parameter> is left unchanged 7702f4aeb0Sopenharmony_ci after calling <function>eglCopyBuffers</function>. 7802f4aeb0Sopenharmony_ci </para> 7902f4aeb0Sopenharmony_ci </refsect1> 8002f4aeb0Sopenharmony_ci <refsect1 id="errors"><title>Errors</title> 8102f4aeb0Sopenharmony_ci <para> 8202f4aeb0Sopenharmony_ci <constant>EGL_FALSE</constant> is returned if swapping of the 8302f4aeb0Sopenharmony_ci surface buffers fails, <constant>EGL_TRUE</constant> otherwise. 8402f4aeb0Sopenharmony_ci </para> 8502f4aeb0Sopenharmony_ci <para> 8602f4aeb0Sopenharmony_ci <constant>EGL_BAD_DISPLAY</constant> is generated if 8702f4aeb0Sopenharmony_ci <parameter>display</parameter> is not an EGL display connection. 8802f4aeb0Sopenharmony_ci </para> 8902f4aeb0Sopenharmony_ci <para> 9002f4aeb0Sopenharmony_ci <constant>EGL_NOT_INITIALIZED</constant> is generated if 9102f4aeb0Sopenharmony_ci <parameter>display</parameter> has not been initialized. 9202f4aeb0Sopenharmony_ci </para> 9302f4aeb0Sopenharmony_ci <para> 9402f4aeb0Sopenharmony_ci <constant>EGL_BAD_SURFACE</constant> is generated if 9502f4aeb0Sopenharmony_ci <parameter>surface</parameter> is not an EGL drawing surface. 9602f4aeb0Sopenharmony_ci </para> 9702f4aeb0Sopenharmony_ci <para> 9802f4aeb0Sopenharmony_ci <constant>EGL_BAD_NATIVE_PIXMAP</constant> is generated if 9902f4aeb0Sopenharmony_ci the implementation does not support native pixmaps. 10002f4aeb0Sopenharmony_ci </para> 10102f4aeb0Sopenharmony_ci <para> 10202f4aeb0Sopenharmony_ci <constant>EGL_BAD_NATIVE_PIXMAP</constant> may be generated if 10302f4aeb0Sopenharmony_ci <parameter>native_pixmap</parameter> is not a valid native pixmap. 10402f4aeb0Sopenharmony_ci </para> 10502f4aeb0Sopenharmony_ci <para> 10602f4aeb0Sopenharmony_ci <constant>EGL_BAD_MATCH</constant> is generated if 10702f4aeb0Sopenharmony_ci the format of <parameter>native_pixmap</parameter> is not compatible 10802f4aeb0Sopenharmony_ci with the color buffer of <parameter>surface</parameter>. 10902f4aeb0Sopenharmony_ci </para> 11002f4aeb0Sopenharmony_ci <para> 11102f4aeb0Sopenharmony_ci <constant>EGL_CONTEXT_LOST</constant> is generated if a power management 11202f4aeb0Sopenharmony_ci event has occurred. The application must destroy all contexts and 11302f4aeb0Sopenharmony_ci reinitialise OpenGL ES state and objects to continue rendering. 11402f4aeb0Sopenharmony_ci </para> 11502f4aeb0Sopenharmony_ci </refsect1> 11602f4aeb0Sopenharmony_ci <refsect1 id="seealso"><title>See Also</title> 11702f4aeb0Sopenharmony_ci <para> 11802f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>glFlush</refentrytitle></citerefentry>, 11902f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglSwapBuffers</refentrytitle></citerefentry> 12002f4aeb0Sopenharmony_ci </para> 12102f4aeb0Sopenharmony_ci </refsect1> 12202f4aeb0Sopenharmony_ci <refsect3 id="Copyright"><title></title> 12302f4aeb0Sopenharmony_ci <!-- Content included from copyright.inc.xsl --> 12402f4aeb0Sopenharmony_ci <imageobject> 12502f4aeb0Sopenharmony_ci <imagedata fileref="KhronosLogo.jpg" format="jpg" /> 12602f4aeb0Sopenharmony_ci </imageobject> 12702f4aeb0Sopenharmony_ci <para /> 12802f4aeb0Sopenharmony_ci </refsect3> 12902f4aeb0Sopenharmony_ci</refentry> 130