eglQueryAPI

Query the current rendering API

C Specification

EGLenum eglQueryAPI( void);  

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 eglQueryAPI).

The current rendering API can be changed by calling eglBindAPI.

Errors

None.

See Also

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

Copyright © 2003-2014 The Khronos Group Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or associated documentation files (the "Materials"), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to the condition that this copyright notice and permission notice shall be included in all copies or substantial portions of the Materials.