102f4aeb0Sopenharmony_ci<?xml version="1.0" encoding="UTF-8" standalone="no"?>
202f4aeb0Sopenharmony_ci<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">
302f4aeb0Sopenharmony_ci  <head>
402f4aeb0Sopenharmony_ci    <title xmlns:xlink="http://www.w3.org/1999/xlink">eglQueryAPI - EGL Reference Pages</title>
502f4aeb0Sopenharmony_ci    <link rel="stylesheet" type="text/css" href="khronos-man.css"/>
602f4aeb0Sopenharmony_ci    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/>
702f4aeb0Sopenharmony_ci  </head>
802f4aeb0Sopenharmony_ci  <body>
902f4aeb0Sopenharmony_ci    <header/>
1002f4aeb0Sopenharmony_ci    <div class="refentry" id="eglQueryAPI">
1102f4aeb0Sopenharmony_ci      <div class="titlepage"/>
1202f4aeb0Sopenharmony_ci      <div class="refnamediv">
1302f4aeb0Sopenharmony_ci        <h2>Name</h2>
1402f4aeb0Sopenharmony_ci        <p>eglQueryAPI — Query the current rendering API</p>
1502f4aeb0Sopenharmony_ci      </div>
1602f4aeb0Sopenharmony_ci      <div class="refsynopsisdiv">
1702f4aeb0Sopenharmony_ci        <h2>C Specification</h2>
1802f4aeb0Sopenharmony_ci        <div class="funcsynopsis">
1902f4aeb0Sopenharmony_ci          <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table">
2002f4aeb0Sopenharmony_ci            <tr>
2102f4aeb0Sopenharmony_ci              <td>
2202f4aeb0Sopenharmony_ci                <code class="funcdef">EGLenum <strong class="fsfunc">eglQueryAPI</strong>(</code>
2302f4aeb0Sopenharmony_ci              </td>
2402f4aeb0Sopenharmony_ci              <td><code>void)</code>;</td>
2502f4aeb0Sopenharmony_ci              <td> </td>
2602f4aeb0Sopenharmony_ci            </tr>
2702f4aeb0Sopenharmony_ci          </table>
2802f4aeb0Sopenharmony_ci          <div class="funcprototype-spacer"> </div>
2902f4aeb0Sopenharmony_ci        </div>
3002f4aeb0Sopenharmony_ci      </div>
3102f4aeb0Sopenharmony_ci      <div class="refsect1" id="description">
3202f4aeb0Sopenharmony_ci        <h2>Description</h2>
3302f4aeb0Sopenharmony_ci        <p>
3402f4aeb0Sopenharmony_ci            <code class="function">eglQueryAPI</code> returns the value of the
3502f4aeb0Sopenharmony_ci            current rendering API for EGL in the thread it is called
3602f4aeb0Sopenharmony_ci            from. The current rendering API is set by
3702f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglBindAPI.xhtml"><span class="citerefentry"><span class="refentrytitle">eglBindAPI</span></span></a>,
3802f4aeb0Sopenharmony_ci            and affects the behavior of other EGL commands.
3902f4aeb0Sopenharmony_ci        </p>
4002f4aeb0Sopenharmony_ci        <p>
4102f4aeb0Sopenharmony_ci            The value returned will be one of the valid
4202f4aeb0Sopenharmony_ci            <em class="parameter"><code>api</code></em> parameters to
4302f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglBindAPI.xhtml"><span class="citerefentry"><span class="refentrytitle">eglBindAPI</span></span></a>, or
4402f4aeb0Sopenharmony_ci            <code class="constant">EGL_NONE</code>.
4502f4aeb0Sopenharmony_ci        </p>
4602f4aeb0Sopenharmony_ci      </div>
4702f4aeb0Sopenharmony_ci      <div class="refsect1" id="notes">
4802f4aeb0Sopenharmony_ci        <h2>Notes</h2>
4902f4aeb0Sopenharmony_ci        <p>
5002f4aeb0Sopenharmony_ci            <code class="function">eglQueryAPI</code> is supported only if the
5102f4aeb0Sopenharmony_ci            EGL version is 1.2 or greater.
5202f4aeb0Sopenharmony_ci        </p>
5302f4aeb0Sopenharmony_ci        <p>
5402f4aeb0Sopenharmony_ci            The initial value of the current rendering API is
5502f4aeb0Sopenharmony_ci            <code class="constant">EGL_OPENGL_ES_API</code> unless OpenGL ES is
5602f4aeb0Sopenharmony_ci            not supported by an implementation, in which case the
5702f4aeb0Sopenharmony_ci            initial value is <code class="constant">EGL_NONE</code> (however,
5802f4aeb0Sopenharmony_ci            <code class="constant">EGL_NONE</code> is not a valid
5902f4aeb0Sopenharmony_ci            <em class="parameter"><code>api</code></em> parameter to
6002f4aeb0Sopenharmony_ci            <code class="function">eglQueryAPI</code>).
6102f4aeb0Sopenharmony_ci        </p>
6202f4aeb0Sopenharmony_ci        <p>
6302f4aeb0Sopenharmony_ci            The current rendering API can be changed by calling
6402f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglBindAPI.xhtml"><span class="citerefentry"><span class="refentrytitle">eglBindAPI</span></span></a>.
6502f4aeb0Sopenharmony_ci        </p>
6602f4aeb0Sopenharmony_ci      </div>
6702f4aeb0Sopenharmony_ci      <div class="refsect1" id="errors">
6802f4aeb0Sopenharmony_ci        <h2>Errors</h2>
6902f4aeb0Sopenharmony_ci        <p>
7002f4aeb0Sopenharmony_ci            None.
7102f4aeb0Sopenharmony_ci        </p>
7202f4aeb0Sopenharmony_ci      </div>
7302f4aeb0Sopenharmony_ci      <div class="refsect1" id="seealso">
7402f4aeb0Sopenharmony_ci        <h2>See Also</h2>
7502f4aeb0Sopenharmony_ci        <p>
7602f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglBindAPI.xhtml"><span class="citerefentry"><span class="refentrytitle">eglBindAPI</span></span></a>,
7702f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglCreateContext.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreateContext</span></span></a>,
7802f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglGetCurrentContext.xhtml"><span class="citerefentry"><span class="refentrytitle">eglGetCurrentContext</span></span></a>,
7902f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglGetCurrentDisplay.xhtml"><span class="citerefentry"><span class="refentrytitle">eglGetCurrentDisplay</span></span></a>,
8002f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglGetCurrentSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglGetCurrentSurface</span></span></a>,
8102f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a>,
8202f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglWaitClient.xhtml"><span class="citerefentry"><span class="refentrytitle">eglWaitClient</span></span></a>,
8302f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglWaitNative.xhtml"><span class="citerefentry"><span class="refentrytitle">eglWaitNative</span></span></a>
8402f4aeb0Sopenharmony_ci        </p>
8502f4aeb0Sopenharmony_ci      </div>
8602f4aeb0Sopenharmony_ci      <p>
8702f4aeb0Sopenharmony_ci    </p>
8802f4aeb0Sopenharmony_ci      <div class="refsect3" id="copyright">
8902f4aeb0Sopenharmony_ci        <img src="KhronosLogo.jpg"/>
9002f4aeb0Sopenharmony_ci        <p>
9102f4aeb0Sopenharmony_ci            Copyright © 2003-2014 The Khronos Group Inc.
9202f4aeb0Sopenharmony_ci            Permission is hereby granted, free of charge, to any person obtaining a
9302f4aeb0Sopenharmony_ci            copy of this software and/or associated documentation files (the
9402f4aeb0Sopenharmony_ci            "Materials"), to deal in the Materials without restriction, including
9502f4aeb0Sopenharmony_ci            without limitation the rights to use, copy, modify, merge, publish,
9602f4aeb0Sopenharmony_ci            distribute, sublicense, and/or sell copies of the Materials, and to
9702f4aeb0Sopenharmony_ci            permit persons to whom the Materials are furnished to do so, subject to
9802f4aeb0Sopenharmony_ci            the condition that this copyright notice and permission notice shall be included
9902f4aeb0Sopenharmony_ci            in all copies or substantial portions of the Materials.
10002f4aeb0Sopenharmony_ci        </p>
10102f4aeb0Sopenharmony_ci      </div>
10202f4aeb0Sopenharmony_ci      <p>
10302f4aeb0Sopenharmony_ci</p>
10402f4aeb0Sopenharmony_ci    </div>
10502f4aeb0Sopenharmony_ci    <footer/>
10602f4aeb0Sopenharmony_ci  </body>
10702f4aeb0Sopenharmony_ci</html>
108