Lines Matching defs:egl
48 namespace egl
67 void checkEGLPlatformSupport (const Library& egl)
69 const vector<std::string> extensions = eglu::getClientExtensions(egl);
74 void checkEGL15Support (const Library& egl, EGLDisplay display)
79 std::vector<std::string> tokens = de::splitString(egl.queryString(display, EGL_VERSION), ' ');
89 const Library& egl = nativeDisplay.getLibrary();
96 surface = egl.createWindowSurface(display, config, window.getLegacyNative(), DE_NULL);
97 EGLU_CHECK_MSG(egl, "eglCreateWindowSurface() failed");
102 checkEGLPlatformSupport(egl);
104 surface = egl.createPlatformWindowSurfaceEXT(display, config, nativeWindow, DE_NULL);
105 EGLU_CHECK_MSG(egl, "eglCreatePlatformWindowSurfaceEXT() failed");
110 checkEGL15Support(egl, display);
111 surface = egl.createPlatformWindowSurface(display, config, window.getPlatformNative(), DE_NULL);
112 EGLU_CHECK_MSG(egl, "eglCreatePlatformWindowSurface() failed");
121 const Library& egl = nativeDisplay.getLibrary();
127 surface = egl.createPixmapSurface(display, config, pixmap.getLegacyNative(), DE_NULL);
128 EGLU_CHECK_MSG(egl, "eglCreatePixmapSurface() failed");
131 checkEGLPlatformSupport(egl);
132 surface = egl.createPlatformPixmapSurfaceEXT(display, config, pixmap.getPlatformExtension(), DE_NULL);
133 EGLU_CHECK_MSG(egl, "eglCreatePlatformPixmapSurfaceEXT() failed");
136 checkEGL15Support(egl, display);
137 surface = egl.createPlatformPixmapSurface(display, config, pixmap.getPlatformNative(), DE_NULL);
138 EGLU_CHECK_MSG(egl, "eglCreatePlatformPixmapSurface() failed");
156 const Library& egl = m_eglTestCtx.getLibrary();
158 EGLint id = eglu::getConfigID(egl, display, config);
186 EGLU_CHECK_MSG(egl, "init");
192 eglu::UniqueSurface surface (egl, display, createWindowSurface(display, config, m_eglTestCtx.getNativeDisplay(), *window, m_createType));
197 EGLU_CHECK_CALL(egl, querySurface(display, *surface, EGL_WIDTH, &windowWidth));
198 EGLU_CHECK_CALL(egl, querySurface(display, *surface, EGL_HEIGHT, &windowHeight));
225 const Library& egl = m_eglTestCtx.getLibrary();
227 EGLint id = eglu::getConfigID(egl, display, config);
255 EGLU_CHECK_MSG(egl, "init");
261 eglu::UniqueSurface surface (egl, display, createPixmapSurface(display, config, m_eglTestCtx.getNativeDisplay(), *pixmap, m_createType));
265 EGLU_CHECK_CALL(egl, querySurface(display, *surface, EGL_WIDTH, &pixmapWidth));
266 EGLU_CHECK_CALL(egl, querySurface(display, *surface, EGL_HEIGHT, &pixmapHeight));
292 const Library& egl = m_eglTestCtx.getLibrary();
294 EGLint id = eglu::getConfigID(egl, display, config);
301 EGLU_CHECK_MSG(egl, "init");
304 width = deMin32(width, eglu::getConfigAttribInt(egl, display, config, EGL_MAX_PBUFFER_WIDTH));
305 height = deMin32(height, eglu::getConfigAttribInt(egl, display, config, EGL_MAX_PBUFFER_HEIGHT));
324 EGLSurface surface = egl.createPbufferSurface(display, config, attribs);
325 EGLU_CHECK_MSG(egl, "Failed to create pbuffer");
327 egl.destroySurface(display, surface);
458 } // egl