Lines Matching defs:config
133 RenderContext (const NativeDisplayFactory* displayFactory, const NativeWindowFactory* windowFactory, const NativePixmapFactory* pixmapFactory, const glu::RenderConfig& config, const glu::RenderContext* sharedContext = DE_NULL);
151 void create (const NativeDisplayFactory* displayFactory, const NativeWindowFactory* windowFactory, const NativePixmapFactory* pixmapFactory, const glu::RenderConfig& config, const glu::RenderContext* sharedContext);
172 RenderContext::RenderContext (const NativeDisplayFactory* displayFactory, const NativeWindowFactory* windowFactory, const NativePixmapFactory* pixmapFactory, const glu::RenderConfig& config, const glu::RenderContext* sharedContext)
173 : m_renderConfig (config)
190 create(displayFactory, windowFactory, pixmapFactory, config, sharedContext);
233 WindowSurfacePair createWindow (NativeDisplay* nativeDisplay, const NativeWindowFactory* windowFactory, EGLDisplay eglDisplay, EGLConfig eglConfig, const glu::RenderConfig& config)
235 const int width = (config.width == glu::RenderConfig::DONT_CARE ? WindowParams::SIZE_DONT_CARE : config.width);
236 const int height = (config.height == glu::RenderConfig::DONT_CARE ? WindowParams::SIZE_DONT_CARE : config.height);
237 const WindowParams::Visibility visibility = getNativeWindowVisibility(config.windowVisibility);
257 PixmapSurfacePair createPixmap (NativeDisplay* nativeDisplay, const NativePixmapFactory* pixmapFactory, EGLDisplay eglDisplay, EGLConfig eglConfig, const glu::RenderConfig& config)
259 const int width = (config.width == glu::RenderConfig::DONT_CARE ? DEFAULT_OFFSCREEN_WIDTH : config.width);
260 const int height = (config.height == glu::RenderConfig::DONT_CARE ? DEFAULT_OFFSCREEN_HEIGHT : config.height);
280 EGLSurface createPBuffer (const Library& egl, EGLDisplay display, EGLConfig eglConfig, const glu::RenderConfig& config)
282 const int width = (config.width == glu::RenderConfig::DONT_CARE ? DEFAULT_OFFSCREEN_WIDTH : config.width);
283 const int height = (config.height == glu::RenderConfig::DONT_CARE ? DEFAULT_OFFSCREEN_HEIGHT : config.height);
310 void RenderContext::create (const NativeDisplayFactory* displayFactory, const NativeWindowFactory* windowFactory, const NativePixmapFactory* pixmapFactory, const glu::RenderConfig& config, const glu::RenderContext *sharedContext)
312 glu::RenderConfig::SurfaceType surfaceType = config.surfaceType;
334 m_eglConfig = chooseConfig(egl, m_eglDisplay, config);
348 throw tcu::NotSupportedError("Selected EGL config doesn't support any surface types", DE_NULL, __FILE__, __LINE__);
357 const WindowSurfacePair windowSurface = createWindow(m_display.get(), windowFactory, m_eglDisplay, m_eglConfig, config);
370 const PixmapSurfacePair pixmapSurface = createPixmap(m_display.get(), pixmapFactory, m_eglDisplay, m_eglConfig, config);
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);
397 glu::initCoreFunctions(&m_glFunctions, &funcLoader, config.type.getAPI());
400 else if (config.type.getAPI() == glu::ApiType::es(2,0))
406 else if (config.type.getAPI() == glu::ApiType::es(3,0))
412 else if (config.type.getAPI() == glu::ApiType::es(3,1))
418 else if (config.type.getAPI() == glu::ApiType::es(3,2))
427 if (glu::isContextTypeES(config.type))
429 if (config.type.getMinorVersion() <= 2)
440 glu::initCoreFunctions(&m_glFunctions, &funcLoader, config.type.getAPI());
446 glu::initExtensionFunctions(&m_glFunctions, &extLoader, config.type.getAPI());
465 EGLU_CHECK_MSG(egl, "Failed to query config attributes");
600 glu::RenderContext* GLContextFactory::createContext (const glu::RenderConfig& config, const tcu::CommandLine& cmdLine, const glu::RenderContext *sharedContext) const
625 return new RenderContext(&displayFactory, windowFactory, pixmapFactory, config, sharedContext);