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="eglGetConfigs">
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>eglGetConfigs</refentrytitle>
1302f4aeb0Sopenharmony_ci        <manvolnum>3G</manvolnum>
1402f4aeb0Sopenharmony_ci    </refmeta>
1502f4aeb0Sopenharmony_ci    <refnamediv>
1602f4aeb0Sopenharmony_ci        <refname>eglGetConfigs</refname>
1702f4aeb0Sopenharmony_ci        <refpurpose>
1802f4aeb0Sopenharmony_ci            return a list of all <acronym>EGL</acronym> frame buffer configurations
1902f4aeb0Sopenharmony_ci            for a display
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>eglGetConfigs</function></funcdef>
2702f4aeb0Sopenharmony_ci                <paramdef>EGLDisplay <parameter>display</parameter></paramdef>
2802f4aeb0Sopenharmony_ci                <paramdef>EGLConfig * <parameter>configs</parameter></paramdef>
2902f4aeb0Sopenharmony_ci                <paramdef>EGLint <parameter>config_size</parameter></paramdef>
3002f4aeb0Sopenharmony_ci                <paramdef>EGLint * <parameter>num_config</parameter></paramdef>
3102f4aeb0Sopenharmony_ci            </funcprototype>
3202f4aeb0Sopenharmony_ci        </funcsynopsis>
3302f4aeb0Sopenharmony_ci    </refsynopsisdiv>
3402f4aeb0Sopenharmony_ci    <refsect1 id="parameters"><title>Parameters</title>
3502f4aeb0Sopenharmony_ci        <variablelist>
3602f4aeb0Sopenharmony_ci            <varlistentry>
3702f4aeb0Sopenharmony_ci                <term><parameter>display</parameter></term>
3802f4aeb0Sopenharmony_ci                <listitem><para>Specifies the EGL display connection.</para></listitem>
3902f4aeb0Sopenharmony_ci            </varlistentry>
4002f4aeb0Sopenharmony_ci            <varlistentry>
4102f4aeb0Sopenharmony_ci                <term><parameter>configs</parameter></term>
4202f4aeb0Sopenharmony_ci                <listitem><para>Returns a list of configs.</para></listitem>
4302f4aeb0Sopenharmony_ci            </varlistentry>
4402f4aeb0Sopenharmony_ci            <varlistentry>
4502f4aeb0Sopenharmony_ci                <term><parameter>config_size</parameter></term>
4602f4aeb0Sopenharmony_ci                <listitem><para>Specifies the size of the list of configs.
4702f4aeb0Sopenharmony_ci                </para></listitem>
4802f4aeb0Sopenharmony_ci            </varlistentry>
4902f4aeb0Sopenharmony_ci            <varlistentry>
5002f4aeb0Sopenharmony_ci                <term><parameter>num_config</parameter></term>
5102f4aeb0Sopenharmony_ci                <listitem><para>Returns the number of configs returned.
5202f4aeb0Sopenharmony_ci                </para></listitem>
5302f4aeb0Sopenharmony_ci            </varlistentry>
5402f4aeb0Sopenharmony_ci        </variablelist>
5502f4aeb0Sopenharmony_ci    </refsect1>
5602f4aeb0Sopenharmony_ci    <refsect1 id="description"><title>Description</title>
5702f4aeb0Sopenharmony_ci        <para>
5802f4aeb0Sopenharmony_ci            <function>eglGetConfigs</function> returns a list of all
5902f4aeb0Sopenharmony_ci            EGL frame buffer configurations that are available for the specified
6002f4aeb0Sopenharmony_ci            display.
6102f4aeb0Sopenharmony_ci            The items in the list can be used in any EGL function that requires
6202f4aeb0Sopenharmony_ci            an EGL frame buffer configuration.
6302f4aeb0Sopenharmony_ci        </para>
6402f4aeb0Sopenharmony_ci        <para>
6502f4aeb0Sopenharmony_ci            <parameter>configs</parameter> does not return values, if it is specified
6602f4aeb0Sopenharmony_ci            as
6702f4aeb0Sopenharmony_ci            <constant>NULL</constant>. This is useful for querying just the
6802f4aeb0Sopenharmony_ci            number of all frame buffer configurations.
6902f4aeb0Sopenharmony_ci        </para>
7002f4aeb0Sopenharmony_ci        <para>
7102f4aeb0Sopenharmony_ci            Use
7202f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglGetConfigAttrib</refentrytitle></citerefentry>
7302f4aeb0Sopenharmony_ci            to retrieve individual attribute values of a frame buffer configuration.
7402f4aeb0Sopenharmony_ci        </para>
7502f4aeb0Sopenharmony_ci    </refsect1>
7602f4aeb0Sopenharmony_ci    <refsect1 id="errors"><title>Errors</title>
7702f4aeb0Sopenharmony_ci        <para>
7802f4aeb0Sopenharmony_ci            <constant>EGL_FALSE</constant> is returned on failure,
7902f4aeb0Sopenharmony_ci            <constant>EGL_TRUE</constant> otherwise.
8002f4aeb0Sopenharmony_ci            <parameter>configs</parameter> and <parameter>num_config</parameter>
8102f4aeb0Sopenharmony_ci            are not modified when
8202f4aeb0Sopenharmony_ci            <constant>EGL_FALSE</constant> is returned.
8302f4aeb0Sopenharmony_ci        </para>
8402f4aeb0Sopenharmony_ci        <para>
8502f4aeb0Sopenharmony_ci            <constant>EGL_BAD_DISPLAY</constant> is generated if
8602f4aeb0Sopenharmony_ci            <parameter>display</parameter> is not an EGL display connection.
8702f4aeb0Sopenharmony_ci        </para>
8802f4aeb0Sopenharmony_ci        <para>
8902f4aeb0Sopenharmony_ci            <constant>EGL_NOT_INITIALIZED</constant> is generated if
9002f4aeb0Sopenharmony_ci            <parameter>display</parameter> has not been initialized.
9102f4aeb0Sopenharmony_ci        </para>
9202f4aeb0Sopenharmony_ci        <para>
9302f4aeb0Sopenharmony_ci            <constant>EGL_BAD_PARAMETER</constant> is generated if
9402f4aeb0Sopenharmony_ci            <parameter>num_config</parameter> is <constant>NULL</constant>.
9502f4aeb0Sopenharmony_ci        </para>
9602f4aeb0Sopenharmony_ci    </refsect1>
9702f4aeb0Sopenharmony_ci    <refsect1 id="seealso"><title>See Also</title>
9802f4aeb0Sopenharmony_ci        <para>
9902f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglCreateContext</refentrytitle></citerefentry>,
10002f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglCreatePbufferSurface</refentrytitle></citerefentry>,
10102f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglCreatePixmapSurface</refentrytitle></citerefentry>,
10202f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglCreateWindowSurface</refentrytitle></citerefentry>,
10302f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglChooseConfig</refentrytitle></citerefentry>,
10402f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglGetConfigAttrib</refentrytitle></citerefentry>
10502f4aeb0Sopenharmony_ci        </para>
10602f4aeb0Sopenharmony_ci    </refsect1>
10702f4aeb0Sopenharmony_ci    <refsect3 id="Copyright"><title></title>
10802f4aeb0Sopenharmony_ci        <!-- Content included from copyright.inc.xsl -->
10902f4aeb0Sopenharmony_ci        <imageobject>
11002f4aeb0Sopenharmony_ci                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
11102f4aeb0Sopenharmony_ci        </imageobject>
11202f4aeb0Sopenharmony_ci        <para />
11302f4aeb0Sopenharmony_ci    </refsect3>
11402f4aeb0Sopenharmony_ci</refentry>
115