aboutsummaryrefslogtreecommitdiff
path: root/glew/auto/EGL-Registry/sdk/docs/man/eglGetConfigAttrib.xml
blob: 70313fe39dcc3b5c834c50110b974615c7f87948 (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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:base="" xml:id="eglGetConfigAttrib">
    <info>
         <copyright>
             <year>2003-2014</year>
             <holder>The Khronos Group Inc.</holder>
         </copyright>
    </info>
    <refmeta>
        <refentrytitle>eglGetConfigAttrib</refentrytitle>
        <manvolnum>3G</manvolnum>
    </refmeta>
    <refnamediv>
        <refname>eglGetConfigAttrib</refname>
        <refpurpose>
            return information about an <acronym>EGL</acronym> frame buffer
            configuration
        </refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>C Specification</title>
        <funcsynopsis>
            <funcprototype>
                <funcdef>EGLBoolean <function>eglGetConfigAttrib</function></funcdef>
                <paramdef>EGLDisplay <parameter>display</parameter></paramdef>
                <paramdef>EGLConfig <parameter>config</parameter></paramdef>
                <paramdef>EGLint <parameter>attribute</parameter></paramdef>
                <paramdef>EGLint * <parameter>value</parameter></paramdef>
            </funcprototype>
        </funcsynopsis>
    </refsynopsisdiv>
    <refsect1 xml:id="parameters"><title>Parameters</title>
        <variablelist>
            <varlistentry>
                <term><parameter>display</parameter></term>
                <listitem><para>Specifies the EGL display connection.</para></listitem>
            </varlistentry>
            <varlistentry>
                <term><parameter>config</parameter></term>
                <listitem><para>Specifies the EGL frame buffer configuration to be
                    queried.
                </para></listitem>
            </varlistentry>
            <varlistentry>
                <term><parameter>attribute</parameter></term>
                <listitem><para>Specifies the EGL rendering context attribute to be
                returned.</para></listitem>
            </varlistentry>
            <varlistentry>
                <term><parameter>value</parameter></term>
                <listitem><para>Returns the requested value.</para></listitem>
            </varlistentry>
        </variablelist>
    </refsect1>
    <refsect1 xml:id="description"><title>Description</title>
        <para>
            <function>eglGetConfigAttrib</function> returns in
            <parameter>value</parameter> the value of
            <parameter>attribute</parameter> for
            <parameter>config</parameter>
            (config attributes are described in more detail in the
            <citerefentry><refentrytitle>eglChooseConfig</refentrytitle></citerefentry>
            reference page).
            <parameter>attribute</parameter> can be one of the following:
        </para>
        <variablelist>
            <varlistentry>
            <term><constant>EGL_ALPHA_SIZE</constant></term>
            <listitem><para>Returns the number of bits of alpha stored in the
            color buffer.
            </para></listitem>
            </varlistentry>
            <varlistentry>
                <term><constant>EGL_ALPHA_MASK_SIZE</constant></term>
                <listitem><para>
                    Returns the number of bits in the alpha mask buffer.
                </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_BIND_TO_TEXTURE_RGB</constant></term>
            <listitem><para>Returns <constant>EGL_TRUE</constant> if color buffers can be
            bound to an RGB texture,
            <constant>EGL_FALSE</constant> otherwise.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_BIND_TO_TEXTURE_RGBA</constant></term>
            <listitem><para>Returns <constant>EGL_TRUE</constant> if color buffers can be
            bound to an RGBA texture,
            <constant>EGL_FALSE</constant> otherwise.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_BLUE_SIZE</constant></term>
            <listitem><para>Returns the number of bits of blue stored in the
            color buffer.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_BUFFER_SIZE</constant></term>
            <listitem><para>Returns the depth of the color buffer.
                It is the sum of
                <constant>EGL_RED_SIZE</constant>,
                <constant>EGL_GREEN_SIZE</constant>,
                <constant>EGL_BLUE_SIZE</constant>, and
                <constant>EGL_ALPHA_SIZE</constant>.
            </para></listitem>
            </varlistentry>
            <varlistentry>
                <term><constant>EGL_COLOR_BUFFER_TYPE</constant></term>
                <listitem><para>
                    Returns the color buffer type. Possible types are
                    <constant>EGL_RGB_BUFFER</constant> and
                    <constant>EGL_LUMINANCE_BUFFER</constant>.
                </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_CONFIG_CAVEAT</constant></term>
            <listitem><para>Returns the caveats for the frame buffer configuration.
                Possible caveat values are
                <constant>EGL_NONE</constant>,
                <constant>EGL_SLOW_CONFIG</constant>, and
                <constant>EGL_NON_CONFORMANT</constant>.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_CONFIG_ID</constant></term>
            <listitem><para>Returns the ID of the frame buffer configuration.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_CONFORMANT</constant></term>
            <listitem><para>
                Returns a bitmask indicating which client API contexts
                created with respect to this config are conformant.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_DEPTH_SIZE</constant></term>
            <listitem><para>Returns the number of bits in the depth buffer.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_GREEN_SIZE</constant></term>
            <listitem><para>Returns the number of bits of green stored in the
            color buffer.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_LEVEL</constant></term>
            <listitem><para>Returns the frame buffer level.
                Level zero is the default frame buffer.
                Positive levels correspond to frame buffers that overlay the default
                buffer and negative levels correspond to frame buffers that underlay
                the default buffer.
            </para></listitem>
            </varlistentry>
            <varlistentry>
                <term><constant>EGL_LUMINANCE_SIZE</constant></term>
                <listitem>
                <para>
                    Returns the number of bits of luminance stored in the luminance buffer.
                </para>
                </listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_MAX_PBUFFER_WIDTH</constant></term>
            <listitem><para>Returns the maximum width of a pixel buffer surface in pixels.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_MAX_PBUFFER_HEIGHT</constant></term>
            <listitem><para>Returns the maximum height of a pixel buffer surface in pixels.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_MAX_PBUFFER_PIXELS</constant></term>
            <listitem><para>Returns the maximum size of a pixel buffer surface in pixels.
            </para></listitem>
            </varlistentry>
            <varlistentry>
                <term><constant>EGL_MAX_SWAP_INTERVAL</constant></term>
                <listitem><para>Returns the maximum value that can be passed to eglSwapInterval.
                </para></listitem>
            </varlistentry>
            <varlistentry>
                <term><constant>EGL_MIN_SWAP_INTERVAL</constant></term>
                <listitem><para>Returns the minimum value that can be passed to eglSwapInterval.
                </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_NATIVE_RENDERABLE</constant></term>
            <listitem><para>Returns <constant>EGL_TRUE</constant> if native rendering
                APIs can render into the surface,
                <constant>EGL_FALSE</constant> otherwise.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_NATIVE_VISUAL_ID</constant></term>
            <listitem><para>Returns the ID of the associated native visual.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_NATIVE_VISUAL_TYPE</constant></term>
            <listitem><para>Returns the type of the associated native visual.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_RED_SIZE</constant></term>
            <listitem><para>Returns the number of bits of red stored in the
            color buffer.
            </para></listitem>
            </varlistentry>
            <varlistentry>
                <term><constant>EGL_RENDERABLE_TYPE</constant></term>
                <listitem>
                <para>
                    Returns a bitmask indicating the types of supported
                    client API contexts.
                </para>
                </listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_SAMPLE_BUFFERS</constant></term>
            <listitem><para>Returns the number of multisample buffers.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_SAMPLES</constant></term>
            <listitem><para>Returns the number of samples per pixel.</para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_STENCIL_SIZE</constant></term>
            <listitem><para>Returns the number of bits in the stencil buffer.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_SURFACE_TYPE</constant></term>
            <listitem><para>
                Returns a bitmask indicating the types of supported EGL
                surfaces.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_TRANSPARENT_TYPE</constant></term>
            <listitem><para>Returns the type of supported transparency.
                Possible transparency values are:
                <constant>EGL_NONE</constant>, and
                <constant>EGL_TRANSPARENT_RGB</constant>.
            </para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_TRANSPARENT_RED_VALUE</constant></term>
            <listitem><para>Returns the transparent red value.</para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_TRANSPARENT_GREEN_VALUE</constant></term>
            <listitem><para>Returns the transparent green value.</para></listitem>
            </varlistentry>
            <varlistentry>
            <term><constant>EGL_TRANSPARENT_BLUE_VALUE</constant></term>
            <listitem><para>Returns the transparent blue value.</para></listitem>
            </varlistentry>
        </variablelist>
    </refsect1>
    <refsect1 xml:id="notes"><title>Notes</title>
        <para>
            <constant>EGL_CONFORMANT</constant> is supported only if the
            EGL version is 1.3 or greater.
        </para>
        <para>
            <constant>EGL_ALPHA_MASK_SIZE</constant>,
            <constant>EGL_COLOR_BUFFER_TYPE</constant>,
            <constant>EGL_LUMINANCE_SIZE</constant>, and
            <constant>EGL_RENDERABLE_TYPE</constant> are supported only
            if the EGL version is 1.2 or greater.
        </para>
        <para>
            While <constant>EGL_MATCH_NATIVE_PIXMAP</constant> can be
            specified in the attribute list passed to
            <citerefentry><refentrytitle>eglChooseConfig</refentrytitle></citerefentry>,
            it is not an attribute of the resulting config and cannot be
            queried using <function>eglGetConfigAttrib</function>.
        </para>
    </refsect1>
    <refsect1 xml:id="errors"><title>Errors</title>
        <para>
            <constant>EGL_FALSE</constant> is returned on failure,
            <constant>EGL_TRUE</constant> otherwise.
            <parameter>value</parameter> is not modified when
            <constant>EGL_FALSE</constant> is returned.
        </para>
        <para>
            <constant>EGL_BAD_DISPLAY</constant> is generated if
            <parameter>display</parameter> is not an EGL display connection.
        </para>
        <para>
            <constant>EGL_NOT_INITIALIZED</constant> is generated if
            <parameter>display</parameter> has not been initialized.
        </para>
        <para>
            <constant>EGL_BAD_CONFIG</constant> is generated if
            <parameter>config</parameter> is not an EGL frame buffer configuration.
        </para>
        <para>
            <constant>EGL_BAD_ATTRIBUTE</constant> is generated if
            <parameter>attribute</parameter> is not a valid frame buffer
            configuration attribute.
        </para>
    </refsect1>
    <refsect1 xml:id="seealso"><title>See Also</title>
        <para>
            <citerefentry><refentrytitle>eglChooseConfig</refentrytitle></citerefentry>,
            <citerefentry><refentrytitle>eglGetConfigs</refentrytitle></citerefentry>
        </para>
    </refsect1>
    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="copyright.xml"/>
</refentry>