Lines Matching refs:eglDisplay
18 EGLDisplay eglDisplay;
222 if ( (eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY)) == EGL_NO_DISPLAY )
228 if ( eglInitialize(eglDisplay, NULL, NULL) != EGL_TRUE )
234 if (! printEGLConfigurations(eglDisplay)) {
240 EGLUtils::selectConfigForNativeWindow(eglDisplay, attrib, window, &myConfig);
242 if ( (eglSurface = eglCreateWindowSurface(eglDisplay, myConfig,
249 if ( (eglContext = eglCreateContext(eglDisplay, myConfig, 0, 0)) == EGL_NO_CONTEXT )
255 if ( eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext) != EGL_TRUE )
263 eglQuerySurface(eglDisplay, eglSurface, EGL_WIDTH, &w);
265 eglQuerySurface(eglDisplay, eglSurface, EGL_HEIGHT, &h);
281 if (eglDisplay != EGL_NO_DISPLAY)
285 eglDestroyContext( eglDisplay, eglContext );
286 eglDestroySurface( eglDisplay, eglSurface );
287 eglTerminate( eglDisplay );
288 eglDisplay = EGL_NO_DISPLAY;
363 eglSwapBuffers(eglDisplay, eglSurface);