102f4aeb0Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 202f4aeb0Sopenharmony_ci<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN" 302f4aeb0Sopenharmony_ci "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd"> 402f4aeb0Sopenharmony_ci<refentry xml:base="" id="eglQueryAPI"> 502f4aeb0Sopenharmony_ci <refentryinfo> 602f4aeb0Sopenharmony_ci <copyright> 702f4aeb0Sopenharmony_ci <year>2003-2014</year> 802f4aeb0Sopenharmony_ci <holder>The Khronos Group Inc.</holder> 902f4aeb0Sopenharmony_ci </copyright> 1002f4aeb0Sopenharmony_ci </refentryinfo> 1102f4aeb0Sopenharmony_ci <refmeta> 1202f4aeb0Sopenharmony_ci <refentrytitle>eglQueryAPI</refentrytitle> 1302f4aeb0Sopenharmony_ci <manvolnum>3G</manvolnum> 1402f4aeb0Sopenharmony_ci </refmeta> 1502f4aeb0Sopenharmony_ci <refnamediv> 1602f4aeb0Sopenharmony_ci <refname>eglQueryAPI</refname> 1702f4aeb0Sopenharmony_ci <refpurpose>Query the current rendering API</refpurpose> 1802f4aeb0Sopenharmony_ci </refnamediv> 1902f4aeb0Sopenharmony_ci <refsynopsisdiv><title>C Specification</title> 2002f4aeb0Sopenharmony_ci <funcsynopsis> 2102f4aeb0Sopenharmony_ci <funcprototype> 2202f4aeb0Sopenharmony_ci <funcdef>EGLenum <function>eglQueryAPI</function></funcdef> 2302f4aeb0Sopenharmony_ci <void/> 2402f4aeb0Sopenharmony_ci </funcprototype> 2502f4aeb0Sopenharmony_ci </funcsynopsis> 2602f4aeb0Sopenharmony_ci </refsynopsisdiv> 2702f4aeb0Sopenharmony_ci <refsect1 id="description"><title>Description</title> 2802f4aeb0Sopenharmony_ci <para> 2902f4aeb0Sopenharmony_ci <function>eglQueryAPI</function> returns the value of the 3002f4aeb0Sopenharmony_ci current rendering API for EGL in the thread it is called 3102f4aeb0Sopenharmony_ci from. The current rendering API is set by 3202f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglBindAPI</refentrytitle></citerefentry>, 3302f4aeb0Sopenharmony_ci and affects the behavior of other EGL commands. 3402f4aeb0Sopenharmony_ci </para> 3502f4aeb0Sopenharmony_ci <para> 3602f4aeb0Sopenharmony_ci The value returned will be one of the valid 3702f4aeb0Sopenharmony_ci <parameter>api</parameter> parameters to 3802f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglBindAPI</refentrytitle></citerefentry>, or 3902f4aeb0Sopenharmony_ci <constant>EGL_NONE</constant>. 4002f4aeb0Sopenharmony_ci </para> 4102f4aeb0Sopenharmony_ci </refsect1> 4202f4aeb0Sopenharmony_ci <refsect1 id="notes"><title>Notes</title> 4302f4aeb0Sopenharmony_ci <para> 4402f4aeb0Sopenharmony_ci <function>eglQueryAPI</function> is supported only if the 4502f4aeb0Sopenharmony_ci EGL version is 1.2 or greater. 4602f4aeb0Sopenharmony_ci </para> 4702f4aeb0Sopenharmony_ci <para> 4802f4aeb0Sopenharmony_ci The initial value of the current rendering API is 4902f4aeb0Sopenharmony_ci <constant>EGL_OPENGL_ES_API</constant> unless OpenGL ES is 5002f4aeb0Sopenharmony_ci not supported by an implementation, in which case the 5102f4aeb0Sopenharmony_ci initial value is <constant>EGL_NONE</constant> (however, 5202f4aeb0Sopenharmony_ci <constant>EGL_NONE</constant> is not a valid 5302f4aeb0Sopenharmony_ci <parameter>api</parameter> parameter to 5402f4aeb0Sopenharmony_ci <function>eglQueryAPI</function>). 5502f4aeb0Sopenharmony_ci </para> 5602f4aeb0Sopenharmony_ci <para> 5702f4aeb0Sopenharmony_ci The current rendering API can be changed by calling 5802f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglBindAPI</refentrytitle></citerefentry>. 5902f4aeb0Sopenharmony_ci </para> 6002f4aeb0Sopenharmony_ci </refsect1> 6102f4aeb0Sopenharmony_ci <refsect1 id="errors"><title>Errors</title> 6202f4aeb0Sopenharmony_ci <para> 6302f4aeb0Sopenharmony_ci None. 6402f4aeb0Sopenharmony_ci </para> 6502f4aeb0Sopenharmony_ci </refsect1> 6602f4aeb0Sopenharmony_ci <refsect1 id="seealso"><title>See Also</title> 6702f4aeb0Sopenharmony_ci <para> 6802f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglBindAPI</refentrytitle></citerefentry>, 6902f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglCreateContext</refentrytitle></citerefentry>, 7002f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglGetCurrentContext</refentrytitle></citerefentry>, 7102f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglGetCurrentDisplay</refentrytitle></citerefentry>, 7202f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglGetCurrentSurface</refentrytitle></citerefentry>, 7302f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglMakeCurrent</refentrytitle></citerefentry>, 7402f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglWaitClient</refentrytitle></citerefentry>, 7502f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglWaitNative</refentrytitle></citerefentry> 7602f4aeb0Sopenharmony_ci </para> 7702f4aeb0Sopenharmony_ci </refsect1> 7802f4aeb0Sopenharmony_ci <refsect3 id="Copyright"><title></title> 7902f4aeb0Sopenharmony_ci <!-- Content included from copyright.inc.xsl --> 8002f4aeb0Sopenharmony_ci <imageobject> 8102f4aeb0Sopenharmony_ci <imagedata fileref="KhronosLogo.jpg" format="jpg" /> 8202f4aeb0Sopenharmony_ci </imageobject> 8302f4aeb0Sopenharmony_ci <para /> 8402f4aeb0Sopenharmony_ci </refsect3> 8502f4aeb0Sopenharmony_ci</refentry> 86