Lines Matching full:egl
29 #include <EGL/egl.h>
30 #include <EGL/eglext.h>
55 static char const * const gVersionString = "1.4 Android META-EGL";
458 template<typename NATIVE, typename EGL>
459 static inline NATIVE* egl_to_native_cast(EGL arg) {
557 // dynamically load all our EGL implementations for all displays
570 EGLDisplay dpy = cnx->egl.eglGetDisplay(EGL_DEFAULT_DISPLAY);
571 LOGE_IF(dpy==EGL_NO_DISPLAY, "No EGLDisplay for software EGL!");
583 property_get("debug.egl.hw", value, "1");
589 EGLDisplay dpy = cnx->egl.eglGetDisplay(EGL_DEFAULT_DISPLAY);
590 LOGE_IF(dpy==EGL_NO_DISPLAY, "No EGLDisplay for hardware EGL!");
659 // initialize each EGL and
680 cnx->egl.eglGetDisplay(EGL_DEFAULT_DISPLAY);
686 if (cnx->egl.eglInitialize(idpy, &cnx->major, &cnx->minor)) {
695 cnx->egl.eglQueryString(idpy, EGL_VENDOR);
697 cnx->egl.eglQueryString(idpy, EGL_VERSION);
699 cnx->egl.eglQueryString(idpy, EGL_EXTENSIONS);
701 cnx->egl.eglQueryString(idpy, EGL_CLIENT_APIS);
705 egl_strerror(cnx->egl.eglGetError()));
714 if (cnx->egl.eglGetConfigs(dp->disp[i].dpy, 0, 0, &n)) {
717 if (cnx->egl.eglGetConfigs(
747 // terminates an EGLDisplay, not a EGL itself.
768 if (cnx->egl.eglTerminate(dp->disp[i].dpy) == EGL_FALSE) {
770 egl_strerror(cnx->egl.eglGetError()));
865 cnx->egl.eglGetConfigAttrib(
875 // cnx->egl.eglChooseConfig() -- but we don't have to loop
880 res = cnx->egl.eglChooseConfig(
899 if (cnx->egl.eglChooseConfig(
941 return cnx->egl.eglGetConfigAttrib(
957 EGLSurface surface = cnx->egl.eglCreateWindowSurface(
975 EGLSurface surface = cnx->egl.eglCreatePixmapSurface(
992 EGLSurface surface = cnx->egl.eglCreatePbufferSurface(
1012 EGLBoolean result = s->cnx->egl.eglDestroySurface(
1031 return s->cnx->egl.eglQuerySurface(
1046 EGLContext context = cnx->egl.eglCreateContext(
1081 EGLBoolean result = c->cnx->egl.eglDestroyContext(
1161 result = c->cnx->egl.eglMakeCurrent(
1164 result = cur_c->cnx->egl.eglMakeCurrent(
1210 return c->cnx->egl.eglQueryContext(
1270 res = cnx->egl.eglWaitGL();
1290 res = cnx->egl.eglWaitNative(engine);
1302 err = cnx->egl.eglGetError();
1336 if (cnx->egl.eglGetProcAddress) {
1337 addr = cnx->egl.eglGetProcAddress(procname);
1386 return s->cnx->egl.eglSwapBuffers(dp->disp[s->impl].dpy, s->surface);
1399 return s->cnx->egl.eglCopyBuffers(
1421 // EGL 1.1
1434 if (s->cnx->egl.eglSurfaceAttrib) {
1435 return s->cnx->egl.eglSurfaceAttrib(
1451 if (s->cnx->egl.eglBindTexImage) {
1452 return s->cnx->egl.eglBindTexImage(
1468 if (s->cnx->egl.eglReleaseTexImage) {
1469 return s->cnx->egl.eglReleaseTexImage(
1484 if (cnx->egl.eglSwapInterval) {
1485 if (cnx->egl.eglSwapInterval(
1497 // EGL 1.2
1514 if (cnx->egl.eglWaitClient) {
1515 res = cnx->egl.eglWaitClient();
1517 res = cnx->egl.eglWaitGL();
1534 if (cnx->egl.eglBindAPI) {
1535 if (cnx->egl.eglBindAPI(api) == EGL_FALSE) {
1553 if (cnx->egl.eglQueryAPI) {
1556 return cnx->egl.eglQueryAPI();
1569 if (cnx->egl.eglReleaseThread) {
1570 cnx->egl.eglReleaseThread();
1586 if (cnx->egl.eglCreatePbufferFromClientBuffer) {
1587 return cnx->egl.eglCreatePbufferFromClientBuffer(
1610 if (s->cnx->egl.eglLockSurfaceKHR) {
1611 return s->cnx->egl.eglLockSurfaceKHR(
1628 if (s->cnx->egl.eglUnlockSurfaceKHR) {
1629 return s->cnx->egl.eglUnlockSurfaceKHR(
1646 EGLImageKHR image = c->cnx->egl.eglCreateImageKHR(
1674 if (cnx->egl.eglCreateImageKHR) {
1675 implImages[i] = cnx->egl.eglCreateImageKHR(
1723 if (cnx->egl.eglCreateImageKHR) {
1724 if (cnx->egl.eglDestroyImageKHR(
1755 if (s->cnx->egl.eglSetSwapRectangleANDROID) {
1756 return s->cnx->egl.eglSetSwapRectangleANDROID(
1771 if (s->cnx->egl.eglGetRenderBufferANDROID) {
1772 return s->cnx->egl.eglGetRenderBufferANDROID(