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="eglQueryString">
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>eglQueryString</refentrytitle>
1302f4aeb0Sopenharmony_ci        <manvolnum>3G</manvolnum>
1402f4aeb0Sopenharmony_ci    </refmeta>
1502f4aeb0Sopenharmony_ci    <refnamediv>
1602f4aeb0Sopenharmony_ci        <refname>eglQueryString</refname>
1702f4aeb0Sopenharmony_ci        <refpurpose>
1802f4aeb0Sopenharmony_ci            return a string describing an <acronym>EGL</acronym> display connection
1902f4aeb0Sopenharmony_ci        </refpurpose>
2002f4aeb0Sopenharmony_ci    </refnamediv>
2102f4aeb0Sopenharmony_ci    <refsynopsisdiv>
2202f4aeb0Sopenharmony_ci        <title>C Specification</title>
2302f4aeb0Sopenharmony_ci        <funcsynopsis>
2402f4aeb0Sopenharmony_ci            <funcprototype>
2502f4aeb0Sopenharmony_ci                <funcdef>char const * <function>eglQueryString</function></funcdef>
2602f4aeb0Sopenharmony_ci                <paramdef>EGLDisplay <parameter>display</parameter></paramdef>
2702f4aeb0Sopenharmony_ci                <paramdef>EGLint <parameter>name</parameter></paramdef>
2802f4aeb0Sopenharmony_ci            </funcprototype>
2902f4aeb0Sopenharmony_ci        </funcsynopsis>
3002f4aeb0Sopenharmony_ci    </refsynopsisdiv>
3102f4aeb0Sopenharmony_ci    <refsect1 id="parameters"><title>Parameters</title>
3202f4aeb0Sopenharmony_ci        <variablelist>
3302f4aeb0Sopenharmony_ci            <varlistentry>
3402f4aeb0Sopenharmony_ci                <term><parameter>display</parameter></term>
3502f4aeb0Sopenharmony_ci                <listitem>
3602f4aeb0Sopenharmony_ci                    <para>
3702f4aeb0Sopenharmony_ci                        Specifies the EGL display connection.
3802f4aeb0Sopenharmony_ci                    </para>
3902f4aeb0Sopenharmony_ci                </listitem>
4002f4aeb0Sopenharmony_ci            </varlistentry>
4102f4aeb0Sopenharmony_ci            <varlistentry>
4202f4aeb0Sopenharmony_ci                <term><parameter>name</parameter></term>
4302f4aeb0Sopenharmony_ci                <listitem>
4402f4aeb0Sopenharmony_ci                    <para>
4502f4aeb0Sopenharmony_ci                        Specifies a symbolic constant, one of
4602f4aeb0Sopenharmony_ci                        <constant>EGL_CLIENT_APIS</constant>,
4702f4aeb0Sopenharmony_ci                        <constant>EGL_VENDOR</constant>,
4802f4aeb0Sopenharmony_ci                        <constant>EGL_VERSION</constant>, or
4902f4aeb0Sopenharmony_ci                        <constant>EGL_EXTENSIONS</constant>.
5002f4aeb0Sopenharmony_ci                    </para>
5102f4aeb0Sopenharmony_ci                </listitem>
5202f4aeb0Sopenharmony_ci            </varlistentry>
5302f4aeb0Sopenharmony_ci        </variablelist>
5402f4aeb0Sopenharmony_ci    </refsect1>
5502f4aeb0Sopenharmony_ci    <refsect1 id="description"><title>Description</title>
5602f4aeb0Sopenharmony_ci        <para>
5702f4aeb0Sopenharmony_ci            <function>eglQueryString</function> returns a pointer to a
5802f4aeb0Sopenharmony_ci            static string describing an EGL display connection.
5902f4aeb0Sopenharmony_ci            <parameter>name</parameter> can be one of the following:
6002f4aeb0Sopenharmony_ci        </para>
6102f4aeb0Sopenharmony_ci        <variablelist>
6202f4aeb0Sopenharmony_ci            <varlistentry>
6302f4aeb0Sopenharmony_ci                <term><constant>EGL_CLIENT_APIS</constant></term>
6402f4aeb0Sopenharmony_ci                <listitem><para>
6502f4aeb0Sopenharmony_ci                    Returns a string describing which client rendering
6602f4aeb0Sopenharmony_ci                    APIs are supported. The string contains a
6702f4aeb0Sopenharmony_ci                    space-separate list of API names. The list must
6802f4aeb0Sopenharmony_ci                    include at least one of <code>OpenGL</code>,
6902f4aeb0Sopenharmony_ci                    <code>OpenGL_ES</code>, or <code>OpenVG</code>.
7002f4aeb0Sopenharmony_ci                    These strings correspond respectively to values
7102f4aeb0Sopenharmony_ci                    <constant>EGL_OPENGL_API</constant>,
7202f4aeb0Sopenharmony_ci                    <constant>EGL_OPENGL_ES_API</constant>, and
7302f4aeb0Sopenharmony_ci                    <constant>EGL_OPENVG_API</constant> of the
7402f4aeb0Sopenharmony_ci                    <citerefentry><refentrytitle>eglBindAPI</refentrytitle></citerefentry>,
7502f4aeb0Sopenharmony_ci                    <parameter>api</parameter> argument.
7602f4aeb0Sopenharmony_ci                </para></listitem>
7702f4aeb0Sopenharmony_ci            </varlistentry>
7802f4aeb0Sopenharmony_ci            <varlistentry>
7902f4aeb0Sopenharmony_ci                <term><constant>EGL_VENDOR</constant></term>
8002f4aeb0Sopenharmony_ci                <listitem><para>
8102f4aeb0Sopenharmony_ci                    Returns the company responsible for this EGL implementation. This
8202f4aeb0Sopenharmony_ci                    name does not change from release to release.
8302f4aeb0Sopenharmony_ci                </para></listitem>
8402f4aeb0Sopenharmony_ci            </varlistentry>
8502f4aeb0Sopenharmony_ci            <varlistentry>
8602f4aeb0Sopenharmony_ci                <term><constant>EGL_VERSION</constant></term>
8702f4aeb0Sopenharmony_ci                <listitem><para>
8802f4aeb0Sopenharmony_ci                    Returns a version or release number.
8902f4aeb0Sopenharmony_ci                    The <constant>EGL_VERSION</constant> string is laid out as
9002f4aeb0Sopenharmony_ci                    follows:</para>
9102f4aeb0Sopenharmony_ci                <para>
9202f4aeb0Sopenharmony_ci                    <replaceable>major_version</replaceable>.<replaceable>minor_version</replaceable>
9302f4aeb0Sopenharmony_ci                    space
9402f4aeb0Sopenharmony_ci                    <replaceable>vendor_specific_info</replaceable>
9502f4aeb0Sopenharmony_ci                </para></listitem>
9602f4aeb0Sopenharmony_ci            </varlistentry>
9702f4aeb0Sopenharmony_ci            <varlistentry>
9802f4aeb0Sopenharmony_ci                <term><constant>EGL_EXTENSIONS</constant></term>
9902f4aeb0Sopenharmony_ci                <listitem><para>
10002f4aeb0Sopenharmony_ci                    Returns a space separated list of supported extensions to EGL.
10102f4aeb0Sopenharmony_ci                </para></listitem>
10202f4aeb0Sopenharmony_ci            </varlistentry>
10302f4aeb0Sopenharmony_ci        </variablelist>
10402f4aeb0Sopenharmony_ci    </refsect1>
10502f4aeb0Sopenharmony_ci    <refsect1 id="notes"><title>Notes</title>
10602f4aeb0Sopenharmony_ci        <para>
10702f4aeb0Sopenharmony_ci            <constant>EGL_CLIENT_APIS</constant> is supported only if
10802f4aeb0Sopenharmony_ci            the EGL version is 1.2 or greater.
10902f4aeb0Sopenharmony_ci        </para>
11002f4aeb0Sopenharmony_ci    </refsect1>
11102f4aeb0Sopenharmony_ci    <refsect1 id="errors"><title>Errors</title>
11202f4aeb0Sopenharmony_ci        <para>
11302f4aeb0Sopenharmony_ci            <constant>NULL</constant> is returned on failure.
11402f4aeb0Sopenharmony_ci        </para>
11502f4aeb0Sopenharmony_ci        <para>
11602f4aeb0Sopenharmony_ci            <constant>EGL_BAD_DISPLAY</constant> is generated if
11702f4aeb0Sopenharmony_ci            <parameter>display</parameter> is not an EGL display connection.
11802f4aeb0Sopenharmony_ci        </para>
11902f4aeb0Sopenharmony_ci        <para>
12002f4aeb0Sopenharmony_ci            <constant>EGL_NOT_INITIALIZED</constant> is generated if
12102f4aeb0Sopenharmony_ci            <parameter>display</parameter> has not been initialized.
12202f4aeb0Sopenharmony_ci        </para>
12302f4aeb0Sopenharmony_ci        <para>
12402f4aeb0Sopenharmony_ci            <constant>EGL_BAD_PARAMETER</constant> is generated if
12502f4aeb0Sopenharmony_ci            <parameter>name</parameter> is not an accepted value.
12602f4aeb0Sopenharmony_ci        </para>
12702f4aeb0Sopenharmony_ci    </refsect1>
12802f4aeb0Sopenharmony_ci    <refsect1 id="seealso"><title>See Also</title>
12902f4aeb0Sopenharmony_ci        <para>
13002f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglBindAPI</refentrytitle></citerefentry>,
13102f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglGetDisplay</refentrytitle></citerefentry>,
13202f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglInitialize</refentrytitle></citerefentry>
13302f4aeb0Sopenharmony_ci        </para>
13402f4aeb0Sopenharmony_ci    </refsect1>
13502f4aeb0Sopenharmony_ci    <refsect3 id="Copyright"><title></title>
13602f4aeb0Sopenharmony_ci        <!-- Content included from copyright.inc.xsl -->
13702f4aeb0Sopenharmony_ci        <imageobject>
13802f4aeb0Sopenharmony_ci                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
13902f4aeb0Sopenharmony_ci        </imageobject>
14002f4aeb0Sopenharmony_ci        <para />
14102f4aeb0Sopenharmony_ci    </refsect3>
14202f4aeb0Sopenharmony_ci</refentry>
143