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="eglWaitClient">
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>eglWaitClient</refentrytitle>
1302f4aeb0Sopenharmony_ci        <manvolnum>3G</manvolnum>
1402f4aeb0Sopenharmony_ci    </refmeta>
1502f4aeb0Sopenharmony_ci    <refnamediv>
1602f4aeb0Sopenharmony_ci        <refname>eglWaitClient</refname>
1702f4aeb0Sopenharmony_ci        <refpurpose>
1802f4aeb0Sopenharmony_ci            Complete client API execution prior to subsequent native
1902f4aeb0Sopenharmony_ci            rendering calls
2002f4aeb0Sopenharmony_ci        </refpurpose>
2102f4aeb0Sopenharmony_ci    </refnamediv>
2202f4aeb0Sopenharmony_ci    <refsynopsisdiv>
2302f4aeb0Sopenharmony_ci        <title>C Specification</title>
2402f4aeb0Sopenharmony_ci        <funcsynopsis>
2502f4aeb0Sopenharmony_ci            <funcprototype>
2602f4aeb0Sopenharmony_ci                <funcdef>EGLBoolean <function>eglWaitClient</function></funcdef>
2702f4aeb0Sopenharmony_ci                <void/>
2802f4aeb0Sopenharmony_ci            </funcprototype>
2902f4aeb0Sopenharmony_ci        </funcsynopsis>
3002f4aeb0Sopenharmony_ci    </refsynopsisdiv>
3102f4aeb0Sopenharmony_ci    <refsect1 id="description"><title>Description</title>
3202f4aeb0Sopenharmony_ci        <para>
3302f4aeb0Sopenharmony_ci            All rendering calls for the currently bound context, for the
3402f4aeb0Sopenharmony_ci            current rendering API, made prior to
3502f4aeb0Sopenharmony_ci            <function>eglWaitClient</function> are guaranteed to be
3602f4aeb0Sopenharmony_ci            executed before native rendering calls made after
3702f4aeb0Sopenharmony_ci            <function>eglWaitClient</function>. The same result can be
3802f4aeb0Sopenharmony_ci            achieved using client API-specific commands such as
3902f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>glFinish</refentrytitle></citerefentry>
4002f4aeb0Sopenharmony_ci            or
4102f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>vgFinish</refentrytitle></citerefentry>.
4202f4aeb0Sopenharmony_ci        </para>
4302f4aeb0Sopenharmony_ci        <para>
4402f4aeb0Sopenharmony_ci            <function>eglWaitClient</function> is ignored if there is no
4502f4aeb0Sopenharmony_ci            current EGL rendering context for the current rendering API.
4602f4aeb0Sopenharmony_ci        </para>
4702f4aeb0Sopenharmony_ci    </refsect1>
4802f4aeb0Sopenharmony_ci    <refsect1 id="errors"><title>Errors</title>
4902f4aeb0Sopenharmony_ci        <para>
5002f4aeb0Sopenharmony_ci            <constant>EGL_FALSE</constant> is returned if
5102f4aeb0Sopenharmony_ci            <function>eglWaitClient</function> fails,
5202f4aeb0Sopenharmony_ci            <constant>EGL_TRUE</constant> otherwise.
5302f4aeb0Sopenharmony_ci        </para>
5402f4aeb0Sopenharmony_ci        <para>
5502f4aeb0Sopenharmony_ci            If there is no current context for the current rendering
5602f4aeb0Sopenharmony_ci            API, the function has no effect but still returns
5702f4aeb0Sopenharmony_ci            <constant>EGL_TRUE</constant>.
5802f4aeb0Sopenharmony_ci        </para>
5902f4aeb0Sopenharmony_ci        <para>
6002f4aeb0Sopenharmony_ci            <constant>EGL_BAD_CURRENT_SURFACE</constant> is generated if
6102f4aeb0Sopenharmony_ci            the surface associated with the current context has a native
6202f4aeb0Sopenharmony_ci            window or pixmap, and that window or pixmap is no longer
6302f4aeb0Sopenharmony_ci            valid.
6402f4aeb0Sopenharmony_ci        </para>
6502f4aeb0Sopenharmony_ci    </refsect1>
6602f4aeb0Sopenharmony_ci    <refsect1 id="notes"><title>Notes</title>
6702f4aeb0Sopenharmony_ci        <para>
6802f4aeb0Sopenharmony_ci            <function>eglWaitClient</function> is supported only if the
6902f4aeb0Sopenharmony_ci            EGL version is 1.2 or greater.
7002f4aeb0Sopenharmony_ci        </para>
7102f4aeb0Sopenharmony_ci        <para>
7202f4aeb0Sopenharmony_ci            <function>eglWaitClient</function> is a generalized version
7302f4aeb0Sopenharmony_ci            of <function>eglWaitGL</function>, supporting multiple
7402f4aeb0Sopenharmony_ci            client APIs.
7502f4aeb0Sopenharmony_ci        </para>
7602f4aeb0Sopenharmony_ci    </refsect1>
7702f4aeb0Sopenharmony_ci    <refsect1 id="seealso"><title>See Also</title>
7802f4aeb0Sopenharmony_ci        <para>
7902f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>glFinish</refentrytitle></citerefentry>,
8002f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>glFlush</refentrytitle></citerefentry>,
8102f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglWaitGL</refentrytitle></citerefentry>,
8202f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglWaitNative</refentrytitle></citerefentry>,
8302f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>vgFinish</refentrytitle></citerefentry>
8402f4aeb0Sopenharmony_ci        </para>
8502f4aeb0Sopenharmony_ci    </refsect1>
8602f4aeb0Sopenharmony_ci    <refsect3 id="Copyright"><title></title>
8702f4aeb0Sopenharmony_ci        <!-- Content included from copyright.inc.xsl -->
8802f4aeb0Sopenharmony_ci        <imageobject>
8902f4aeb0Sopenharmony_ci                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
9002f4aeb0Sopenharmony_ci        </imageobject>
9102f4aeb0Sopenharmony_ci        <para />
9202f4aeb0Sopenharmony_ci    </refsect3>
9302f4aeb0Sopenharmony_ci</refentry>
94