Lines Matching refs:egl_dpy
171 static EGLDisplay egl_dpy;
201 egl_dpy = eglGetDisplay((EGLNativeDisplayType) fd);
202 if (egl_dpy == EGL_NO_DISPLAY)
204 if (!eglInitialize(egl_dpy, &major, &minor))
209 printf("EGL_VENDOR: %s\n", eglQueryString(egl_dpy, EGL_VENDOR));
210 printf("EGL_VERSION: %s\n", eglQueryString(egl_dpy, EGL_VERSION));
211 printf("EGL_EXTENSIONS: %s\n", eglQueryString(egl_dpy, EGL_EXTENSIONS));
213 eglQueryString(egl_dpy, EGL_CLIENT_APIS));
216 if (!eglChooseConfig(egl_dpy, NULL, &conf, 1, &num_configs) ||
220 egl_ctx = eglCreateContext(egl_dpy, conf, EGL_NO_CONTEXT, NULL);
224 egl_surf = eglCreateWindowSurface(egl_dpy, conf, native_win, NULL);
228 if (!eglMakeCurrent(egl_dpy, egl_surf, egl_surf, egl_ctx))
235 if (!eglSwapBuffers(egl_dpy, egl_surf))
242 eglMakeCurrent(egl_dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
243 eglDestroyContext(egl_dpy, egl_surf);
244 eglDestroyContext(egl_dpy, egl_ctx);
245 eglTerminate(egl_dpy);
249 egl_dpy = EGL_NO_DISPLAY;