Lines Matching defs:egl
59 namespace egl
301 EGLConfig getEGLConfig (const Library& egl, EGLDisplay eglDisplay, bool preserveColorbuffer)
310 return eglu::chooseSingleConfig(egl, eglDisplay, &attribList[0]);
339 const Library& egl = m_eglTestCtx.getLibrary();
346 egl.bindAPI(EGL_OPENGL_ES_API);
347 m_eglContext = egl.createContext(m_eglDisplay, config, EGL_NO_CONTEXT, attribList);
348 EGLU_CHECK_MSG(egl, "eglCreateContext");
351 egl.makeCurrent(m_eglDisplay, m_eglSurface, m_eglSurface, m_eglContext);
352 EGLU_CHECK_MSG(egl, "eglMakeCurrent");
374 const Library& egl = m_eglTestCtx.getLibrary();
384 egl.makeCurrent(m_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
385 egl.destroyContext(m_eglDisplay, m_eglContext);
391 egl.destroySurface(m_eglDisplay, m_eglSurface);
397 egl.terminate(m_eglDisplay);
420 const Library& egl = m_eglTestCtx.getLibrary();
424 const int width = eglu::querySurfaceInt(egl, m_eglDisplay, m_eglSurface, EGL_WIDTH);
425 const int height = eglu::querySurfaceInt(egl, m_eglDisplay, m_eglSurface, EGL_HEIGHT);
449 EGLU_CHECK_CALL(egl, surfaceAttrib(m_eglDisplay, m_eglSurface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_PRESERVED));
451 EGLU_CHECK_CALL(egl, makeCurrent(m_eglDisplay, m_eglSurface, m_eglSurface, m_eglContext));
474 EGLU_CHECK_CALL(egl, swapBuffers(m_eglDisplay, m_eglSurface));
634 } // egl