aboutsummaryrefslogtreecommitdiff
path: root/glew/auto/EGL-Registry/sdk/docs/man/eglGetPlatformDisplay.xml
blob: f2f91088210cf8178e3ea3e7d37caf05fa3d66cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:base="" xml:id="eglGetPlatformDisplay">
    <info>
         <copyright>
             <year>2018</year>
             <holder>The Khronos Group Inc.</holder>
         </copyright>
    </info>
    <refmeta>
        <refentrytitle>eglGetPlatformDisplay</refentrytitle>
        <manvolnum>3G</manvolnum>
    </refmeta>
    <refnamediv>
        <refname>eglGetPlatformDisplay</refname>
        <refpurpose>
            return an <acronym>EGL</acronym> display connection
        </refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>C Specification</title>
        <funcsynopsis>
            <funcprototype>
                <funcdef>EGLDisplay <function>eglGetPlatformDisplay</function></funcdef>
                <paramdef>EGLenum <parameter>platform</parameter></paramdef>
                <paramdef>void * <parameter>native_display</parameter></paramdef>
                <paramdef>const EGLAttrib * <parameter>attrib_list</parameter></paramdef>
            </funcprototype>
        </funcsynopsis>
    </refsynopsisdiv>
    <refsect1 xml:id="parameters"><title>Parameters</title>
        <variablelist>
            <varlistentry>
                <term><parameter>platform</parameter></term>
                <listitem>
                    <para>
                        Specifies the native platform to obtain a display for.
                    </para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term><parameter>native_display</parameter></term>
                <listitem>
                    <para>
                        Specifies the native display to connect to.
                    </para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term><parameter>attrib_list</parameter></term>
                <listitem>
                    <para>
                        Specifies attributes of the display being obtained.
                    </para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsect1>
    <refsect1 xml:id="description"><title>Description</title>
        <para>
            <function>eglGetPlatformDisplay</function> obtains an
            <acronym>EGL</acronym> display connection for the specified
            <parameter>platform</parameter> and
            <parameter>native_display</parameter>.
        </para>
        <para>
            Valid values for <parameter>platform</parameter> are defined by
            EGL extensions, as are requirements for
            <parameter>native_display</parameter>.
            For example, an extension specification that defines support for
            the X11 platform may require that
            <parameter>native_display</parameter> be a pointer to an X11
            Display, and an extension specification that defines support for
            the Microsoft Windows platform may require that
            <parameter>native_display</parameter> be a pointer to a Windows
            Device Context.
        </para>
        <para>
            Valid attributes are defined by EGL extensions.
            All attributes in <parameter>attrib_list</parameter>,
            including boolean attributes, are immediately followed by
            the corresponding desired value.
            The list is terminated with <constant>EGL_NONE</constant>.
            If an attribute is not specified in
            <parameter>attrib_list</parameter> but is required for the
            specified <parameter>platform</parameter>, then a default value
            is used (and the attribute is said to be specified implicitly).
        </para>
        <para>
            Multiple calls made to
            <function>eglGetPlatformDisplay</function> with the same
            parameters will return the same <type>EGLDisplay</type> handle.
        </para>
        <para>
            If <parameter>platform</parameter> is valid but no display
            matching <parameter>native_display</parameter> is available,
            then <constant>EGL_NO_DISPLAY</constant> is returned; no error
            condition is raised in this case.
        </para>
    </refsect1>
    <refsect1 xml:id="notes"><title>Notes</title>
        <para>
            <function>eglGetPlatformDisplay</function> is supported only if
            the EGL version is 1.5 or greater.
        </para>
    </refsect1>
    <refsect1 xml:id="errors"><title>Errors</title>
        <para>
            <function>eglGetPlatformDisplay</function> returns
            <constant>EGL_NO_DISPLAY</constant> on failure.
        </para>
        <para>
            An <constant>EGL_BAD_PARAMETER</constant> error is generated if
            <parameter>platform</parameter> has an invalid value.
        </para>
    </refsect1>
    <refsect1 xml:id="seealso"><title>See Also</title>
        <para>
            <citerefentry><refentrytitle>eglInitialize</refentrytitle></citerefentry>,
            <citerefentry><refentrytitle>eglGetDisplay</refentrytitle></citerefentry>
        </para>
    </refsect1>
    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="copyright.xml"/>
</refentry>