Lines Matching defs:egl

99 	GetProcFuncLoader (const Library& egl)
100 : m_egl(egl)
280 EGLSurface createPBuffer (const Library& egl, EGLDisplay display, EGLConfig eglConfig, const glu::RenderConfig& config)
292 surface = egl.createPbufferSurface(display, eglConfig, &(attribList[0]));
293 EGLU_CHECK_MSG(egl, "eglCreatePbufferSurface()");
300 const Library& egl = m_display->getLibrary();
302 EGLU_CHECK_CALL(egl, makeCurrent(m_eglDisplay, m_eglSurface, m_eglSurface, m_eglContext));
326 const Library& egl = m_display->getLibrary();
331 EGLU_CHECK_CALL(egl, initialize(m_eglDisplay, &major, &minor));
334 m_eglConfig = chooseConfig(egl, m_eglDisplay, config);
339 const EGLint supportedTypes = eglu::getConfigAttribInt(egl, m_eglDisplay, m_eglConfig, EGL_SURFACE_TYPE);
380 m_eglSurface = createPBuffer(egl, m_eglDisplay, m_eglConfig, config);
387 m_eglContext = createGLContext(egl, m_eglDisplay, m_eglConfig, config.type, m_eglSharedContext, config.resetNotificationStrategy);
389 EGLU_CHECK_CALL(egl, makeCurrent(m_eglDisplay, m_eglSurface, m_eglSurface, m_eglContext));
393 if (hasExtension(egl, m_eglDisplay, "EGL_KHR_get_all_proc_addresses"))
396 GetProcFuncLoader funcLoader(egl);
445 GetProcFuncLoader extLoader(egl);
453 egl.querySurface(m_eglDisplay, m_eglSurface, EGL_WIDTH, &width);
454 egl.querySurface(m_eglDisplay, m_eglSurface, EGL_HEIGHT, &height);
456 egl.getConfigAttrib(m_eglDisplay, m_eglConfig, EGL_RED_SIZE, &pixelFmt.redBits);
457 egl.getConfigAttrib(m_eglDisplay, m_eglConfig, EGL_GREEN_SIZE, &pixelFmt.greenBits);
458 egl.getConfigAttrib(m_eglDisplay, m_eglConfig, EGL_BLUE_SIZE, &pixelFmt.blueBits);
459 egl.getConfigAttrib(m_eglDisplay, m_eglConfig, EGL_ALPHA_SIZE, &pixelFmt.alphaBits);
461 egl.getConfigAttrib(m_eglDisplay, m_eglConfig, EGL_DEPTH_SIZE, &depthBits);
462 egl.getConfigAttrib(m_eglDisplay, m_eglConfig, EGL_STENCIL_SIZE, &stencilBits);
463 egl.getConfigAttrib(m_eglDisplay, m_eglConfig, EGL_SAMPLES, &numSamples);
465 EGLU_CHECK_MSG(egl, "Failed to query config attributes");
470 egl.swapInterval(m_eglDisplay, 0);
477 const Library& egl = m_display->getLibrary();
479 EGLU_CHECK_CALL(egl, makeCurrent(m_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
482 EGLU_CHECK_CALL(egl, destroySurface(m_eglDisplay, m_eglSurface));
485 EGLU_CHECK_CALL(egl, destroyContext(m_eglDisplay, m_eglContext));
488 EGLU_CHECK_CALL(egl, terminate(m_eglDisplay));
506 const Library& egl = m_display->getLibrary();
510 EGLBoolean swapOk = egl.swapBuffers(m_eglDisplay, m_eglSurface);
511 EGLint error = egl.getError();
525 EGLU_CHECK_CALL(egl, makeCurrent(m_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
526 EGLU_CHECK_CALL(egl, destroySurface(m_eglDisplay, m_eglSurface));
538 EGLU_CHECK_CALL(egl, makeCurrent(m_eglDisplay, m_eglSurface, m_eglSurface, m_eglContext));
547 egl.makeCurrent(m_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
548 egl.destroySurface(m_eglDisplay, m_eglSurface);
570 egl.querySurface(m_eglDisplay, m_eglSurface, EGL_WIDTH, &newWidth);
571 egl.querySurface(m_eglDisplay, m_eglSurface, EGL_HEIGHT, &newHeight);
572 EGLU_CHECK_MSG(egl, "Failed to query window size");
595 : glu::ContextFactory ("egl", "EGL OpenGL Context")