• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd">
3<!-- saved from url=(0013)about:internet -->
4<?xml-stylesheet type="text/xsl" href="mathml.xsl"?><html xmlns="http://www.w3.org/1999/xhtml" xmlns:pref="http://www.w3.org/2002/Math/preference" xmlns:xlink="http://www.w3.org/1999/xlink" pref:renderer="mathplayer-dl">
5  <head>
6    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7    <style xmlns="" type="text/css">
8    /* This style sets a margin around the entire page */
9        html, body {
10            margin: 10px;
11        }
12
13        p {
14            font: normal 16px verdana, sans-serif;
15            margin: 0;
16            padding-bottom:12px;
17        }
18
19        h1 {
20            font: bold 25px verdana, sans-serif;
21            margin-top: 0;
22            margin-bottom: 3px;
23            padding-top: 0;
24            padding-bottom: 0;
25        }
26
27        h2 {
28            font: bold 19px verdana, sans-serif;
29            margin-top: 28px;
30            margin-bottom: 3px;
31            padding-top: 0;
32            padding-bottom: 0;
33        }
34
35        h3 {
36            font: bold 19px verdana, sans-serif !important;
37            margin-top: 28px;
38            margin-bottom: 3px;
39            padding-top: 0;
40            padding-bottom: 0;
41        }
42
43        li {
44            font: normal 16px verdana, sans-serif;
45            margin-top: 0;
46            margin-bottom: 18px;
47            padding-top: 0;
48            padding-bottom: 0;
49        }
50
51        .pdparam {
52            font: italic 16px verdana, sans-serif;
53        }
54
55                .term {
56                        font: italic 16px verdana, sans-serif;
57                        font-weight: normal;
58                }
59
60                .type {
61                        font: normal 16px verdana, sans-serif !important;
62                }
63
64                .parameter {
65                        font-style: italic;
66                        }
67
68        a:link, a:visited {
69            color: blue;
70            text-decoration: none;
71            font: normal 16px;
72        }
73
74        a:hover {
75            background-color: #FFFF99;
76            font: normal 16px;
77        }
78
79        div.funcsynopsis {
80            text-align: left;
81            background-color: #e6e6e6;
82            font: normal 16px verdana, sans-serif;
83                        padding-top: 10px;
84                        padding-bottom: 10px;
85        }
86
87        div.funcsynopsis table {
88            border-collapse: separate;
89            font: normal 16px verdana, sans-serif;
90        }
91
92        div.funcsynopsis td {
93            background-color: #e6e6e6;
94            border: 0 solid #000;
95            padding: 1px;
96            font: normal 16px verdana, sans-serif;
97        }
98
99        div.refsect1 {
100            font-family: verdana, sans-serif;
101            font-size: 16px;
102        }
103
104        code.constant {
105            font: normal 16px courier new, monospace !important;
106        }
107
108                span.errorname {
109            font: normal 16px verdana, sans-serif !important;
110        }
111
112        code.function {
113            font: bold 16px verdana, sans-serif !important;
114        }
115
116        b.fsfunc {
117            font: bold 16px verdana, sans-serif !important;
118        }
119
120        code.varname {
121            font: italic 16px verdana, sans-serif;
122        }
123
124        code.replaceable {
125            font: italic 16px courier new, monospace;
126        }
127
128        code.funcdef {
129            font: normal 16px verdana, sans-serif !important;
130        }
131
132        .citerefentry {
133            font: normal 16px verdana, sans-serif !important;
134        }
135
136        .parameter {
137            font-style: italic;
138        }
139
140        code.fsfunc {
141            font: normal 16px verdana, sans-serif !important;
142        }
143
144        /* PARAMETER: This style controls spacing between the terms in Parameter section */
145        dt {
146            margin-top: 15px;
147        }
148
149        /* TABLES: These styles apply to all tables OTHER than the Synopsis and Example tables */
150        div.refsect1 table {
151            width: 100%;
152                        margin-top: 10px;
153            background-color: #FFF;
154                        border-collapse: collapse;
155                        border-color: #000;
156            border-width: 1px;
157                        font: normal 16px verdana, sans-serif;
158        }
159
160        div.refsect1 th {
161                        border-collapse: collapse;
162                        border-color: #000;
163            border-width: 1px;
164            font: bold 16px verdana, sans-serif;
165        }
166
167        div.refsect1 td {
168            background-color: #FFF;
169            padding: 5px;
170            vertical-align: text-top;
171                        border-collapse: collapse;
172                        border-color: #000;
173            border-width: 1px;
174            font: normal 16px verdana, sans-serif;
175        }
176
177                  div.refsect1 p{
178            font: normal 16px verdana, sans-serif;
179            margin-top: 8px;
180            margin-bottom: 8px;
181            padding-top: 0;
182            padding-bottom: 0;
183        }
184
185
186        /* EXAMPLE: These styles apply only to the Example section */
187        div.refsect2 {
188            font: normal 16px courier new, monospace !important;
189        }
190
191        div.refsect2 table {
192            margin-top: 0;
193            background-color: #e6e6e6;
194            width: 100%;
195            border: 0 solid #000;
196            padding: 2px;
197            font: normal 16px courier new, monospace !important;
198        }
199
200        div.refsect2 td {
201            background-color: #e6e6e6;
202            font: normal 16px courier new, monospace !important;
203                        white-space:pre;
204        }
205
206        /* COPYRIGHT: This style formats the text of the copyright statement at the bottom of the page */
207        div.refsect3 {
208            font: normal 11px verdana, sans-serif;
209            margin-top: 50px;
210            margin-bottom: 20px;
211            padding-top: 0;
212            padding-bottom: 0;
213        }
214
215</style>
216    <title>eglGetError</title>
217    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
218  </head>
219  <body>
220    <div class="refentry">
221      <a id="eglGetError"></a>
222      <div class="titlepage"></div>
223      <div xmlns="" class="refnamediv">
224        <h1>eglGetError</h1>
225        <p>
226            return error information
227        </p>
228      </div>
229      <div class="refsynopsisdiv">
230        <h2>C Specification</h2>
231        <div class="funcsynopsis">
232          <table xmlns="" border="0" summary="Function synopsis" cellspacing="0" cellpadding="0">
233            <tr valign="bottom">
234              <td>
235                <code xmlns="http://www.w3.org/1999/xhtml" class="funcdef">EGLint <strong class="fsfunc">eglGetError</strong>(</code>
236                <td xmlns="http://www.w3.org/1999/xhtml"><code>void)</code>;</td>
237                <td xmlns="http://www.w3.org/1999/xhtml"> </td>
238              </td>
239            </tr>
240          </table>
241        </div>
242      </div>
243      <div class="refsect1">
244        <a id="description"></a>
245        <h2>Description</h2>
246        <p>
247            <code class="function">eglGetError</code> returns the error of the last
248            called <acronym class="acronym">EGL</acronym> function in the current thread.
249            Initially, the error is set to <code class="constant">EGL_SUCCESS</code>.
250        </p>
251        <p>
252            The following errors are currently defined:
253        </p>
254        <div class="variablelist">
255          <dl class="variablelist">
256            <dt>
257              <span class="term">
258                <code class="constant">EGL_SUCCESS</code>
259              </span>
260            </dt>
261            <dd>
262              <p>The last function succeeded without error.
263            </p>
264            </dd>
265            <dt>
266              <span class="term">
267                <code class="constant">EGL_NOT_INITIALIZED</code>
268              </span>
269            </dt>
270            <dd>
271              <p>EGL is not initialized, or could not be initialized,
272                for the specified EGL display connection.
273            </p>
274            </dd>
275            <dt>
276              <span class="term">
277                <code class="constant">EGL_BAD_ACCESS</code>
278              </span>
279            </dt>
280            <dd>
281              <p>EGL cannot access a requested resource
282                (for example a context is bound in another thread).
283            </p>
284            </dd>
285            <dt>
286              <span class="term">
287                <code class="constant">EGL_BAD_ALLOC</code>
288              </span>
289            </dt>
290            <dd>
291              <p>EGL failed to allocate resources for the requested
292                operation.</p>
293            </dd>
294            <dt>
295              <span class="term">
296                <code class="constant">EGL_BAD_ATTRIBUTE</code>
297              </span>
298            </dt>
299            <dd>
300              <p>An unrecognized attribute or attribute value was
301                passed in the attribute list.
302            </p>
303            </dd>
304            <dt>
305              <span class="term">
306                <code class="constant">EGL_BAD_CONTEXT</code>
307              </span>
308            </dt>
309            <dd>
310              <p>An <span class="type">EGLContext</span> argument does not name a
311                valid EGL rendering context.
312            </p>
313            </dd>
314            <dt>
315              <span class="term">
316                <code class="constant">EGL_BAD_CONFIG</code>
317              </span>
318            </dt>
319            <dd>
320              <p>
321                An <span class="type">EGLConfig</span> argument does not name a valid
322                EGL frame buffer configuration.
323            </p>
324            </dd>
325            <dt>
326              <span class="term">
327                <code class="constant">EGL_BAD_CURRENT_SURFACE</code>
328              </span>
329            </dt>
330            <dd>
331              <p>The current surface of the calling thread is a window,
332                pixel buffer or pixmap that is no longer valid.
333            </p>
334            </dd>
335            <dt>
336              <span class="term">
337                <code class="constant">EGL_BAD_DISPLAY</code>
338              </span>
339            </dt>
340            <dd>
341              <p>An <span class="type">EGLDisplay</span> argument does not name a
342                valid EGL display connection.
343            </p>
344            </dd>
345            <dt>
346              <span class="term">
347                <code class="constant">EGL_BAD_SURFACE</code>
348              </span>
349            </dt>
350            <dd>
351              <p>An <span class="type">EGLSurface</span> argument does not name a
352                valid surface (window, pixel buffer or pixmap) configured for
353                GL rendering.
354            </p>
355            </dd>
356            <dt>
357              <span class="term">
358                <code class="constant">EGL_BAD_MATCH</code>
359              </span>
360            </dt>
361            <dd>
362              <p>Arguments are inconsistent (for example, a valid
363                context requires buffers not supplied by a valid surface).
364            </p>
365            </dd>
366            <dt>
367              <span class="term">
368                <code class="constant">EGL_BAD_PARAMETER</code>
369              </span>
370            </dt>
371            <dd>
372              <p>One or more argument values are invalid.</p>
373            </dd>
374            <dt>
375              <span class="term">
376                <code class="constant">EGL_BAD_NATIVE_PIXMAP</code>
377              </span>
378            </dt>
379            <dd>
380              <p>
381                A <span class="type">NativePixmapType</span> argument does not refer to
382                a valid native pixmap.
383            </p>
384            </dd>
385            <dt>
386              <span class="term">
387                <code class="constant">EGL_BAD_NATIVE_WINDOW</code>
388              </span>
389            </dt>
390            <dd>
391              <p>A <span class="type">NativeWindowType</span> argument does not refer
392                to a valid native window.
393            </p>
394            </dd>
395            <dt>
396              <span class="term">
397                <code class="constant">EGL_CONTEXT_LOST</code>
398              </span>
399            </dt>
400            <dd>
401              <p>
402                A power management event has occurred. The application must destroy all
403                contexts and reinitialise OpenGL ES state and objects to continue rendering.
404            </p>
405            </dd>
406          </dl>
407        </div>
408      </div>
409      <div class="refsect1">
410        <a id="errors"></a>
411        <h2>Errors</h2>
412        <p>
413            A call to <code class="function">eglGetError</code> sets the error to
414            <code class="constant">EGL_SUCCESS</code>.
415        </p>
416      </div>
417      <div xmlns="" class="refsect3" lang="en" xml:lang="en"><a xmlns="http://www.w3.org/1999/xhtml" id="Copyright"></a><h4 xmlns="http://www.w3.org/1999/xhtml"></h4><img xmlns="http://www.w3.org/1999/xhtml" src="KhronosLogo.jpg" /><p xmlns="http://www.w3.org/1999/xhtml"></p>
418Copyright © 2003-2014 The Khronos Group Inc.
419Permission is hereby granted, free of charge, to any person obtaining a
420copy of this software and/or associated documentation files (the
421"Materials"), to deal in the Materials without restriction, including
422without limitation the rights to use, copy, modify, merge, publish,
423distribute, sublicense, and/or sell copies of the Materials, and to
424permit persons to whom the Materials are furnished to do so, subject to
425the condition that this copyright notice and permission notice shall be included
426in all copies or substantial portions of the Materials.
427</div>
428    </div>
429  </body>
430</html>
431