• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <title xmlns:xlink="http://www.w3.org/1999/xlink">eglQueryAPI - EGL Reference Pages</title>
5    <link rel="stylesheet" type="text/css" href="khronos-man.css"/>
6    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/>
7  </head>
8  <body>
9    <header/>
10    <div class="refentry" id="eglQueryAPI">
11      <div class="titlepage"/>
12      <div class="refnamediv">
13        <h2>Name</h2>
14        <p>eglQueryAPI — Query the current rendering API</p>
15      </div>
16      <div class="refsynopsisdiv">
17        <h2>C Specification</h2>
18        <div class="funcsynopsis">
19          <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table">
20            <tr>
21              <td>
22                <code class="funcdef">EGLenum <strong class="fsfunc">eglQueryAPI</strong>(</code>
23              </td>
24              <td><code>void)</code>;</td>
25              <td> </td>
26            </tr>
27          </table>
28          <div class="funcprototype-spacer"> </div>
29        </div>
30      </div>
31      <div class="refsect1" id="description">
32        <h2>Description</h2>
33        <p>
34            <code class="function">eglQueryAPI</code> returns the value of the
35            current rendering API for EGL in the thread it is called
36            from. The current rendering API is set by
37            <a class="citerefentry" href="eglBindAPI.xhtml"><span class="citerefentry"><span class="refentrytitle">eglBindAPI</span></span></a>,
38            and affects the behavior of other EGL commands.
39        </p>
40        <p>
41            The value returned will be one of the valid
42            <em class="parameter"><code>api</code></em> parameters to
43            <a class="citerefentry" href="eglBindAPI.xhtml"><span class="citerefentry"><span class="refentrytitle">eglBindAPI</span></span></a>, or
44            <code class="constant">EGL_NONE</code>.
45        </p>
46      </div>
47      <div class="refsect1" id="notes">
48        <h2>Notes</h2>
49        <p>
50            <code class="function">eglQueryAPI</code> is supported only if the
51            EGL version is 1.2 or greater.
52        </p>
53        <p>
54            The initial value of the current rendering API is
55            <code class="constant">EGL_OPENGL_ES_API</code> unless OpenGL ES is
56            not supported by an implementation, in which case the
57            initial value is <code class="constant">EGL_NONE</code> (however,
58            <code class="constant">EGL_NONE</code> is not a valid
59            <em class="parameter"><code>api</code></em> parameter to
60            <code class="function">eglQueryAPI</code>).
61        </p>
62        <p>
63            The current rendering API can be changed by calling
64            <a class="citerefentry" href="eglBindAPI.xhtml"><span class="citerefentry"><span class="refentrytitle">eglBindAPI</span></span></a>.
65        </p>
66      </div>
67      <div class="refsect1" id="errors">
68        <h2>Errors</h2>
69        <p>
70            None.
71        </p>
72      </div>
73      <div class="refsect1" id="seealso">
74        <h2>See Also</h2>
75        <p>
76            <a class="citerefentry" href="eglBindAPI.xhtml"><span class="citerefentry"><span class="refentrytitle">eglBindAPI</span></span></a>,
77            <a class="citerefentry" href="eglCreateContext.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreateContext</span></span></a>,
78            <a class="citerefentry" href="eglGetCurrentContext.xhtml"><span class="citerefentry"><span class="refentrytitle">eglGetCurrentContext</span></span></a>,
79            <a class="citerefentry" href="eglGetCurrentDisplay.xhtml"><span class="citerefentry"><span class="refentrytitle">eglGetCurrentDisplay</span></span></a>,
80            <a class="citerefentry" href="eglGetCurrentSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglGetCurrentSurface</span></span></a>,
81            <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a>,
82            <a class="citerefentry" href="eglWaitClient.xhtml"><span class="citerefentry"><span class="refentrytitle">eglWaitClient</span></span></a>,
83            <a class="citerefentry" href="eglWaitNative.xhtml"><span class="citerefentry"><span class="refentrytitle">eglWaitNative</span></span></a>
84        </p>
85      </div>
86      <p>
87    </p>
88      <div class="refsect3" id="copyright">
89        <img src="KhronosLogo.jpg"/>
90        <p>
91            Copyright © 2003-2014 The Khronos Group Inc.
92            Permission is hereby granted, free of charge, to any person obtaining a
93            copy of this software and/or associated documentation files (the
94            "Materials"), to deal in the Materials without restriction, including
95            without limitation the rights to use, copy, modify, merge, publish,
96            distribute, sublicense, and/or sell copies of the Materials, and to
97            permit persons to whom the Materials are furnished to do so, subject to
98            the condition that this copyright notice and permission notice shall be included
99            in all copies or substantial portions of the Materials.
100        </p>
101      </div>
102      <p>
103</p>
104    </div>
105    <footer/>
106  </body>
107</html>
108