2003-2014 The Khronos Group Inc.
eglQueryAPI 3G
eglQueryAPI Query the current rendering API

## C Specification

EGLenum `eglQueryAPI`

## Description

`eglQueryAPI` returns the value of the current rendering API for EGL in the thread it is called from. The current rendering API is set by eglBindAPI, and affects the behavior of other EGL commands.

The value returned will be one of the valid api parameters to eglBindAPI, or `EGL_NONE`.

## Notes

`eglQueryAPI` is supported only if the EGL version is 1.2 or greater.

The initial value of the current rendering API is `EGL_OPENGL_ES_API` unless OpenGL ES is not supported by an implementation, in which case the initial value is `EGL_NONE` (however, `EGL_NONE` is not a valid api parameter to `eglBindAPI`).

The current rendering API can be changed by calling eglBindAPI.

## Errors

None.

## See Also

eglBindAPI, eglCreateContext, eglGetCurrentContext, eglGetCurrentDisplay, eglGetCurrentSurface, eglMakeCurrent, eglWaitClient, eglWaitNative