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="eglCreatePbufferSurface">
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>eglCreatePbufferSurface</refentrytitle>
1302f4aeb0Sopenharmony_ci        <manvolnum>3G</manvolnum>
1402f4aeb0Sopenharmony_ci    </refmeta>
1502f4aeb0Sopenharmony_ci    <refnamediv>
1602f4aeb0Sopenharmony_ci        <refname>eglCreatePbufferSurface</refname>
1702f4aeb0Sopenharmony_ci        <refpurpose>
1802f4aeb0Sopenharmony_ci            create a new <acronym>EGL</acronym> pixel buffer surface
1902f4aeb0Sopenharmony_ci        </refpurpose>
2002f4aeb0Sopenharmony_ci    </refnamediv>
2102f4aeb0Sopenharmony_ci    <refsynopsisdiv>
2202f4aeb0Sopenharmony_ci        <title>C Specification</title>
2302f4aeb0Sopenharmony_ci        <funcsynopsis>
2402f4aeb0Sopenharmony_ci            <funcprototype>
2502f4aeb0Sopenharmony_ci                <funcdef>EGLSurface <function>eglCreatePbufferSurface</function></funcdef>
2602f4aeb0Sopenharmony_ci                <paramdef>EGLDisplay <parameter>display</parameter></paramdef>
2702f4aeb0Sopenharmony_ci                <paramdef>EGLConfig <parameter>config</parameter></paramdef>
2802f4aeb0Sopenharmony_ci                <paramdef>EGLint const * <parameter>attrib_list</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><para>Specifies the EGL display connection.</para></listitem>
3702f4aeb0Sopenharmony_ci            </varlistentry>
3802f4aeb0Sopenharmony_ci            <varlistentry>
3902f4aeb0Sopenharmony_ci                <term><parameter>config</parameter></term>
4002f4aeb0Sopenharmony_ci                <listitem><para>
4102f4aeb0Sopenharmony_ci                    Specifies the EGL frame buffer configuration that defines the
4202f4aeb0Sopenharmony_ci                    frame buffer resource available to the surface.
4302f4aeb0Sopenharmony_ci                </para></listitem>
4402f4aeb0Sopenharmony_ci            </varlistentry>
4502f4aeb0Sopenharmony_ci            <varlistentry>
4602f4aeb0Sopenharmony_ci                <term><parameter>attrib_list</parameter></term>
4702f4aeb0Sopenharmony_ci                <listitem><para>
4802f4aeb0Sopenharmony_ci                    Specifies pixel buffer surface attributes.
4902f4aeb0Sopenharmony_ci                    May be <constant>NULL</constant> or empty
5002f4aeb0Sopenharmony_ci                    (first attribute is <constant>EGL_NONE</constant>).
5102f4aeb0Sopenharmony_ci                </para></listitem>
5202f4aeb0Sopenharmony_ci            </varlistentry>
5302f4aeb0Sopenharmony_ci        </variablelist>
5402f4aeb0Sopenharmony_ci    </refsect1>
5502f4aeb0Sopenharmony_ci    <refsect1 id="description"><title>Description</title>
5602f4aeb0Sopenharmony_ci        <para>
5702f4aeb0Sopenharmony_ci            <function>eglCreatePbufferSurface</function> creates an
5802f4aeb0Sopenharmony_ci            off-screen pixel buffer surface and returns its handle. If
5902f4aeb0Sopenharmony_ci            <function>eglCreatePbufferSurface</function> fails to create
6002f4aeb0Sopenharmony_ci            a pixel buffer surface, <constant>EGL_NO_SURFACE</constant>
6102f4aeb0Sopenharmony_ci            is returned.
6202f4aeb0Sopenharmony_ci        </para>
6302f4aeb0Sopenharmony_ci        <para>
6402f4aeb0Sopenharmony_ci            Surface attributes are specified as a list of
6502f4aeb0Sopenharmony_ci            attribute-value pairs, terminated with
6602f4aeb0Sopenharmony_ci            <constant>EGL_NONE</constant>. Accepted attributes
6702f4aeb0Sopenharmony_ci            are:
6802f4aeb0Sopenharmony_ci        </para>
6902f4aeb0Sopenharmony_ci        <variablelist>
7002f4aeb0Sopenharmony_ci            <varlistentry>
7102f4aeb0Sopenharmony_ci                <term><constant>EGL_HEIGHT</constant></term>
7202f4aeb0Sopenharmony_ci                <listitem>
7302f4aeb0Sopenharmony_ci                <para>
7402f4aeb0Sopenharmony_ci                    Specifies the required height of the pixel buffer
7502f4aeb0Sopenharmony_ci                    surface. The default value is
7602f4aeb0Sopenharmony_ci                    <constant>0</constant>.
7702f4aeb0Sopenharmony_ci                </para>
7802f4aeb0Sopenharmony_ci                </listitem>
7902f4aeb0Sopenharmony_ci            </varlistentry>
8002f4aeb0Sopenharmony_ci            <varlistentry>
8102f4aeb0Sopenharmony_ci                <term><constant>EGL_LARGEST_PBUFFER</constant></term>
8202f4aeb0Sopenharmony_ci                <listitem>
8302f4aeb0Sopenharmony_ci                <para>
8402f4aeb0Sopenharmony_ci                    Requests the largest available pixel buffer surface
8502f4aeb0Sopenharmony_ci                    when the allocation would otherwise fail. Use
8602f4aeb0Sopenharmony_ci                    <citerefentry><refentrytitle>eglQuerySurface</refentrytitle></citerefentry>
8702f4aeb0Sopenharmony_ci                    to retrieve the dimensions of the allocated pixel
8802f4aeb0Sopenharmony_ci                    buffer. The default value is
8902f4aeb0Sopenharmony_ci                    <constant>EGL_FALSE</constant>.
9002f4aeb0Sopenharmony_ci                </para>
9102f4aeb0Sopenharmony_ci                </listitem>
9202f4aeb0Sopenharmony_ci            </varlistentry>
9302f4aeb0Sopenharmony_ci            <varlistentry>
9402f4aeb0Sopenharmony_ci                <term><constant>EGL_MIPMAP_TEXTURE</constant></term>
9502f4aeb0Sopenharmony_ci                <listitem>
9602f4aeb0Sopenharmony_ci                <para>
9702f4aeb0Sopenharmony_ci                    Specifies whether storage for mipmaps should be
9802f4aeb0Sopenharmony_ci                    allocated. Space for mipmaps will be set aside if
9902f4aeb0Sopenharmony_ci                    the attribute value is <constant>EGL_TRUE</constant>
10002f4aeb0Sopenharmony_ci                    and <constant>EGL_TEXTURE_FORMAT</constant> is not
10102f4aeb0Sopenharmony_ci                    <constant>EGL_NO_TEXTURE</constant>. The default
10202f4aeb0Sopenharmony_ci                    value is <constant>EGL_FALSE</constant>.
10302f4aeb0Sopenharmony_ci                </para>
10402f4aeb0Sopenharmony_ci                </listitem>
10502f4aeb0Sopenharmony_ci            </varlistentry>
10602f4aeb0Sopenharmony_ci            <varlistentry>
10702f4aeb0Sopenharmony_ci                <term><constant>EGL_TEXTURE_FORMAT</constant></term>
10802f4aeb0Sopenharmony_ci                <listitem>
10902f4aeb0Sopenharmony_ci                <para>
11002f4aeb0Sopenharmony_ci                    Specifies the format of the texture that will be
11102f4aeb0Sopenharmony_ci                    created when a pbuffer is bound to a texture map.
11202f4aeb0Sopenharmony_ci                    Possible values are
11302f4aeb0Sopenharmony_ci                    <constant>EGL_NO_TEXTURE</constant>,
11402f4aeb0Sopenharmony_ci                    <constant>EGL_TEXTURE_RGB</constant>, and
11502f4aeb0Sopenharmony_ci                    <constant>EGL_TEXTURE_RGBA</constant>. The default
11602f4aeb0Sopenharmony_ci                    value is <constant>EGL_NO_TEXTURE</constant>.
11702f4aeb0Sopenharmony_ci                </para>
11802f4aeb0Sopenharmony_ci                </listitem>
11902f4aeb0Sopenharmony_ci            </varlistentry>
12002f4aeb0Sopenharmony_ci            <varlistentry>
12102f4aeb0Sopenharmony_ci                <term><constant>EGL_TEXTURE_TARGET</constant></term>
12202f4aeb0Sopenharmony_ci                <listitem>
12302f4aeb0Sopenharmony_ci                <para>
12402f4aeb0Sopenharmony_ci                    Specifies the target for the texture that will be
12502f4aeb0Sopenharmony_ci                    created when the pbuffer is created with a texture
12602f4aeb0Sopenharmony_ci                    format of <constant>EGL_TEXTURE_RGB</constant> or
12702f4aeb0Sopenharmony_ci                    <constant>EGL_TEXTURE_RGBA</constant>. Possible
12802f4aeb0Sopenharmony_ci                    values are <constant>EGL_NO_TEXTURE</constant>, or
12902f4aeb0Sopenharmony_ci                    <constant>EGL_TEXTURE_2D</constant>. The default
13002f4aeb0Sopenharmony_ci                    value is <constant>EGL_NO_TEXTURE</constant>.
13102f4aeb0Sopenharmony_ci                </para>
13202f4aeb0Sopenharmony_ci                </listitem>
13302f4aeb0Sopenharmony_ci            </varlistentry>
13402f4aeb0Sopenharmony_ci            <varlistentry>
13502f4aeb0Sopenharmony_ci                <term><constant>EGL_VG_ALPHA_FORMAT</constant></term>
13602f4aeb0Sopenharmony_ci                <listitem>
13702f4aeb0Sopenharmony_ci                <para>
13802f4aeb0Sopenharmony_ci                    Specifies how alpha values are interpreted by OpenVG
13902f4aeb0Sopenharmony_ci                    when rendering to the surface. If its value is
14002f4aeb0Sopenharmony_ci                    <constant>EGL_VG_ALPHA_FORMAT_NONPRE</constant>,
14102f4aeb0Sopenharmony_ci                    then alpha values are not premultipled. If its value
14202f4aeb0Sopenharmony_ci                    is <constant>EGL_VG_ALPHA_FORMAT_PRE</constant>,
14302f4aeb0Sopenharmony_ci                    then alpha values are premultiplied. The default
14402f4aeb0Sopenharmony_ci                    value of <constant>EGL_VG_ALPHA_FORMAT</constant> is
14502f4aeb0Sopenharmony_ci                    <constant>EGL_VG_ALPHA_FORMAT_NONPRE</constant>.
14602f4aeb0Sopenharmony_ci                </para>
14702f4aeb0Sopenharmony_ci                </listitem>
14802f4aeb0Sopenharmony_ci            </varlistentry>
14902f4aeb0Sopenharmony_ci            <varlistentry>
15002f4aeb0Sopenharmony_ci                <term><constant>EGL_VG_COLORSPACE</constant></term>
15102f4aeb0Sopenharmony_ci                <listitem>
15202f4aeb0Sopenharmony_ci                <para>
15302f4aeb0Sopenharmony_ci                    Specifies the color space used by OpenVG when
15402f4aeb0Sopenharmony_ci                    rendering to the surface. If its value is
15502f4aeb0Sopenharmony_ci                    <constant>EGL_VG_COLORSPACE_sRGB</constant>, then a
15602f4aeb0Sopenharmony_ci                    non-linear, perceptually uniform color space is
15702f4aeb0Sopenharmony_ci                    assumed, with a corresponding
15802f4aeb0Sopenharmony_ci                    <type>VGImageFormat</type> of form
15902f4aeb0Sopenharmony_ci                    <constant>VG_s*</constant>. If its value is
16002f4aeb0Sopenharmony_ci                    <constant>EGL_VG_COLORSPACE_LINEAR</constant>, then
16102f4aeb0Sopenharmony_ci                    a linear color space is assumed, with a
16202f4aeb0Sopenharmony_ci                    corresponding <type>VGImageFormat</type> of form
16302f4aeb0Sopenharmony_ci                    <constant>VG_l*</constant>. The default value of
16402f4aeb0Sopenharmony_ci                    <constant>EGL_VG_COLORSPACE</constant> is
16502f4aeb0Sopenharmony_ci                    <constant>EGL_VG_COLORSPACE_sRGB</constant>.
16602f4aeb0Sopenharmony_ci                </para>
16702f4aeb0Sopenharmony_ci                </listitem>
16802f4aeb0Sopenharmony_ci            </varlistentry>
16902f4aeb0Sopenharmony_ci            <varlistentry>
17002f4aeb0Sopenharmony_ci                <term><constant>EGL_WIDTH</constant></term>
17102f4aeb0Sopenharmony_ci                <listitem>
17202f4aeb0Sopenharmony_ci                <para>
17302f4aeb0Sopenharmony_ci                    Specifies the required width of the pixel buffer
17402f4aeb0Sopenharmony_ci                    surface. The default value is
17502f4aeb0Sopenharmony_ci                    <constant>0</constant>.
17602f4aeb0Sopenharmony_ci                </para>
17702f4aeb0Sopenharmony_ci                </listitem>
17802f4aeb0Sopenharmony_ci            </varlistentry>
17902f4aeb0Sopenharmony_ci        </variablelist>
18002f4aeb0Sopenharmony_ci        <para>
18102f4aeb0Sopenharmony_ci            Any EGL rendering context that was created with respect to
18202f4aeb0Sopenharmony_ci            <parameter>config</parameter> can be used to render into the
18302f4aeb0Sopenharmony_ci            surface. Use
18402f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglMakeCurrent</refentrytitle></citerefentry>
18502f4aeb0Sopenharmony_ci            to attach an EGL rendering context to the surface.
18602f4aeb0Sopenharmony_ci        </para>
18702f4aeb0Sopenharmony_ci        <para>
18802f4aeb0Sopenharmony_ci            Use
18902f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglQuerySurface</refentrytitle></citerefentry>
19002f4aeb0Sopenharmony_ci            to retrieve the dimensions of the allocated pixel buffer
19102f4aeb0Sopenharmony_ci            surface or the ID of <parameter>config</parameter>.
19202f4aeb0Sopenharmony_ci        </para>
19302f4aeb0Sopenharmony_ci        <para>
19402f4aeb0Sopenharmony_ci            Use <citerefentry><refentrytitle>eglDestroySurface</refentrytitle></citerefentry>
19502f4aeb0Sopenharmony_ci            to destroy the surface.
19602f4aeb0Sopenharmony_ci        </para>
19702f4aeb0Sopenharmony_ci    </refsect1>
19802f4aeb0Sopenharmony_ci    <refsect1 id="notes"><title>Notes</title>
19902f4aeb0Sopenharmony_ci        <para>
20002f4aeb0Sopenharmony_ci            Attributes
20102f4aeb0Sopenharmony_ci            <constant>EGL_RENDERABLE_TYPE</constant>,
20202f4aeb0Sopenharmony_ci            <constant>EGL_VG_ALPHA_FORMAT</constant>, and
20302f4aeb0Sopenharmony_ci            <constant>EGL_VG_COLORSPACE</constant>, and the
20402f4aeb0Sopenharmony_ci            corresponding attribute values, are supported only if the
20502f4aeb0Sopenharmony_ci            EGL version is 1.2 or greater.
20602f4aeb0Sopenharmony_ci        </para>
20702f4aeb0Sopenharmony_ci        <para>
20802f4aeb0Sopenharmony_ci            If the value of <parameter>config</parameter> attribute
20902f4aeb0Sopenharmony_ci            <constant>EGL_TEXTURE_FORMAT</constant> is not
21002f4aeb0Sopenharmony_ci            <constant>EGL_NO_TEXTURE</constant>, then the pbuffer width
21102f4aeb0Sopenharmony_ci            and height specify the size of the level zero texture image
21202f4aeb0Sopenharmony_ci        </para>
21302f4aeb0Sopenharmony_ci        <para>
21402f4aeb0Sopenharmony_ci            If <constant>EGL_LARGEST_PBUFFER</constant> is specified and
21502f4aeb0Sopenharmony_ci            if the pbuffer will be used as a texture (i.e. the value of
21602f4aeb0Sopenharmony_ci            <constant>EGL_TEXTURE_TARGET</constant> is
21702f4aeb0Sopenharmony_ci            <constant>EGL_TEXTURE_2D</constant>, and the value of
21802f4aeb0Sopenharmony_ci            <constant>EGL_TEXTURE FORMAT</constant> is
21902f4aeb0Sopenharmony_ci            <constant>EGL_TEXTURE_RGB</constant> or
22002f4aeb0Sopenharmony_ci            <constant>EGL_TEXTURE_RGBA</constant>), then the aspect
22102f4aeb0Sopenharmony_ci            ratio will be preserved and the new width and height will be
22202f4aeb0Sopenharmony_ci            valid sizes for the texture target (e.g. if the underlying
22302f4aeb0Sopenharmony_ci            OpenGL ES implementation does not support non-power-of-two
22402f4aeb0Sopenharmony_ci            textures, both the width and height will be a power of 2).
22502f4aeb0Sopenharmony_ci        </para>
22602f4aeb0Sopenharmony_ci        <para>
22702f4aeb0Sopenharmony_ci            The contents of the depth and stencil buffers may not be
22802f4aeb0Sopenharmony_ci            preserved when rendering a texture to the pbuffer and
22902f4aeb0Sopenharmony_ci            switching which image of the texture is rendered to (e.g.,
23002f4aeb0Sopenharmony_ci            switching from rendering one mipmap level to rendering
23102f4aeb0Sopenharmony_ci            another).
23202f4aeb0Sopenharmony_ci        </para>
23302f4aeb0Sopenharmony_ci    </refsect1>
23402f4aeb0Sopenharmony_ci    <refsect1 id="errors"><title>Errors</title>
23502f4aeb0Sopenharmony_ci        <para>
23602f4aeb0Sopenharmony_ci            <constant>EGL_NO_SURFACE</constant> is returned if creation of
23702f4aeb0Sopenharmony_ci            the context fails.
23802f4aeb0Sopenharmony_ci        </para>
23902f4aeb0Sopenharmony_ci        <para>
24002f4aeb0Sopenharmony_ci            <constant>EGL_BAD_DISPLAY</constant> is generated if
24102f4aeb0Sopenharmony_ci            <parameter>display</parameter> is not an EGL display connection.
24202f4aeb0Sopenharmony_ci        </para>
24302f4aeb0Sopenharmony_ci        <para>
24402f4aeb0Sopenharmony_ci            <constant>EGL_NOT_INITIALIZED</constant> is generated if
24502f4aeb0Sopenharmony_ci            <parameter>display</parameter> has not been initialized.
24602f4aeb0Sopenharmony_ci        </para>
24702f4aeb0Sopenharmony_ci        <para>
24802f4aeb0Sopenharmony_ci            <constant>EGL_BAD_CONFIG</constant> is generated if
24902f4aeb0Sopenharmony_ci            <parameter>config</parameter> is not an EGL frame buffer configuration.
25002f4aeb0Sopenharmony_ci        </para>
25102f4aeb0Sopenharmony_ci        <para>
25202f4aeb0Sopenharmony_ci            <constant>EGL_BAD_ATTRIBUTE</constant> is generated if
25302f4aeb0Sopenharmony_ci            <parameter>attrib_list</parameter> contains an invalid pixel
25402f4aeb0Sopenharmony_ci            buffer attribute or if an attribute value is not recognized
25502f4aeb0Sopenharmony_ci            or out of range.
25602f4aeb0Sopenharmony_ci        </para>
25702f4aeb0Sopenharmony_ci        <para>
25802f4aeb0Sopenharmony_ci            <constant>EGL_BAD_ATTRIBUTE</constant> is generated if
25902f4aeb0Sopenharmony_ci            <parameter>attrib_list</parameter> contains any of the
26002f4aeb0Sopenharmony_ci            attributes <constant>EGL_MIPMAP_TEXTURE</constant>,
26102f4aeb0Sopenharmony_ci            <constant>EGL_TEXTURE_FORMAT</constant>, or
26202f4aeb0Sopenharmony_ci            <constant>EGL_TEXTURE_TARGET</constant>, and
26302f4aeb0Sopenharmony_ci            <parameter>config</parameter> does not support OpenGL ES
26402f4aeb0Sopenharmony_ci            rendering (e.g. the EGL version is 1.2 or later, and the
26502f4aeb0Sopenharmony_ci            <constant>EGL_RENDERABLE_TYPE</constant> attribute of
26602f4aeb0Sopenharmony_ci            <parameter>config</parameter> does not include at least one
26702f4aeb0Sopenharmony_ci            of <constant>EGL_OPENGL_ES_BIT</constant> or
26802f4aeb0Sopenharmony_ci            <constant>EGL_OPENGL_ES2_BIT</constant>).
26902f4aeb0Sopenharmony_ci        </para>
27002f4aeb0Sopenharmony_ci        <para>
27102f4aeb0Sopenharmony_ci            <constant>EGL_BAD_ALLOC</constant> is generated if there are not
27202f4aeb0Sopenharmony_ci            enough resources to allocate the new surface.
27302f4aeb0Sopenharmony_ci        </para>
27402f4aeb0Sopenharmony_ci        <para>
27502f4aeb0Sopenharmony_ci            <constant>EGL_BAD_MATCH</constant> is generated if
27602f4aeb0Sopenharmony_ci            <parameter>config</parameter> does not support rendering to pixel buffers
27702f4aeb0Sopenharmony_ci            (the <constant>EGL_SURFACE_TYPE</constant> attribute does not contain
27802f4aeb0Sopenharmony_ci            <constant>EGL_PBUFFER_BIT</constant>).
27902f4aeb0Sopenharmony_ci        </para>
28002f4aeb0Sopenharmony_ci        <para>
28102f4aeb0Sopenharmony_ci            <constant>EGL_BAD_MATCH</constant> is generated if the
28202f4aeb0Sopenharmony_ci            <constant>EGL_TEXTURE_FORMAT</constant> attribute is not
28302f4aeb0Sopenharmony_ci            <constant>EGL_NO_TEXTURE</constant>, and
28402f4aeb0Sopenharmony_ci            <constant>EGL_WIDTH</constant> and/or
28502f4aeb0Sopenharmony_ci            <constant>EGL_HEIGHT</constant> specify an invalid size
28602f4aeb0Sopenharmony_ci            (e.g., the texture size is not a power of 2, and the
28702f4aeb0Sopenharmony_ci            underlying OpenGL ES implementation does not support
28802f4aeb0Sopenharmony_ci            non-power-of-two textures).
28902f4aeb0Sopenharmony_ci        </para>
29002f4aeb0Sopenharmony_ci        <para>
29102f4aeb0Sopenharmony_ci            <constant>EGL_BAD_MATCH</constant> is generated if
29202f4aeb0Sopenharmony_ci            the <constant>EGL_TEXTURE_FORMAT</constant> attribute is
29302f4aeb0Sopenharmony_ci            <constant>EGL_NO_TEXTURE</constant>, and
29402f4aeb0Sopenharmony_ci            <constant>EGL_TEXTURE_TARGET</constant> is something other
29502f4aeb0Sopenharmony_ci            than <constant>EGL_NO_TEXTURE</constant>; or,
29602f4aeb0Sopenharmony_ci            <constant>EGL_TEXTURE_FORMAT</constant> is something other
29702f4aeb0Sopenharmony_ci            than <constant>EGL_NO_TEXTURE</constant>, and
29802f4aeb0Sopenharmony_ci            <constant>EGL_TEXTURE_TARGET</constant> is
29902f4aeb0Sopenharmony_ci            <constant>EGL_NO_TEXTURE</constant>.
30002f4aeb0Sopenharmony_ci        </para>
30102f4aeb0Sopenharmony_ci        <para>
30202f4aeb0Sopenharmony_ci            <constant>EGL_BAD_MATCH</constant> is generated if
30302f4aeb0Sopenharmony_ci            <parameter>config</parameter> does not support the specified
30402f4aeb0Sopenharmony_ci            OpenVG alpha format attribute (the value of
30502f4aeb0Sopenharmony_ci            <constant>EGL_VG_ALPHA_FORMAT</constant> is
30602f4aeb0Sopenharmony_ci            <constant>EGL_VG_ALPHA_FORMAT_PRE</constant> and the
30702f4aeb0Sopenharmony_ci            <constant>EGL_VG_ALPHA_FORMAT_PRE_BIT</constant> is not set
30802f4aeb0Sopenharmony_ci            in the <constant>EGL_SURFACE_TYPE</constant> attribute of
30902f4aeb0Sopenharmony_ci            <parameter>config</parameter>) or colorspace attribute (the
31002f4aeb0Sopenharmony_ci            value of <constant>EGL_VG_COLORSPACE</constant> is
31102f4aeb0Sopenharmony_ci            <constant>EGL_VG_COLORSPACE_LINEAR</constant> and the
31202f4aeb0Sopenharmony_ci            <constant>EGL_VG_COLORSPACE_LINEAR_IT</constant> is not set
31302f4aeb0Sopenharmony_ci            in the <constant>EGL_SURFACE_TYPE</constant> attribute of
31402f4aeb0Sopenharmony_ci            <parameter>config</parameter>).
31502f4aeb0Sopenharmony_ci        </para>
31602f4aeb0Sopenharmony_ci    </refsect1>
31702f4aeb0Sopenharmony_ci    <refsect1 id="seealso"><title>See Also</title>
31802f4aeb0Sopenharmony_ci        <para>
31902f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglDestroySurface</refentrytitle></citerefentry>,
32002f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglChooseConfig</refentrytitle></citerefentry>,
32102f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglGetConfigs</refentrytitle></citerefentry>,
32202f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglMakeCurrent</refentrytitle></citerefentry>,
32302f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglQuerySurface</refentrytitle></citerefentry>
32402f4aeb0Sopenharmony_ci        </para>
32502f4aeb0Sopenharmony_ci    </refsect1>
32602f4aeb0Sopenharmony_ci    <refsect3 id="Copyright"><title></title>
32702f4aeb0Sopenharmony_ci        <!-- Content included from copyright.inc.xsl -->
32802f4aeb0Sopenharmony_ci        <imageobject>
32902f4aeb0Sopenharmony_ci                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
33002f4aeb0Sopenharmony_ci        </imageobject>
33102f4aeb0Sopenharmony_ci        <para />
33202f4aeb0Sopenharmony_ci    </refsect3>
33302f4aeb0Sopenharmony_ci</refentry>
334