Home | History | Annotate | Download | only in win32

Lines Matching refs:wgl

21  * \brief WGL Utilities.
114 // WGL core
133 namespace wgl
191 // Load WGL core.
203 throw ResourceError("Failed to load core WGL functions");
226 throw ResourceError("Failed to create temporary WGL context");
244 throw ResourceError("Failed to load WGL extension functions");
265 const Functions& wgl = m_library->getFunctions();
270 if (!wgl.getPixelFormatAttribivARB(deviceCtx, 0, 0, DE_LENGTH_OF_ARRAY(attribs), &attribs[0], &values[0]))
271 throw ResourceError("Failed to query number of WGL pixel formats");
306 const Functions& wgl = m_library->getFunctions();
326 if (!wgl.getPixelFormatAttribivARB(deviceCtx, pixelFormat, 0, DE_LENGTH_OF_ARRAY(attribs), &attribs[0], &values[0]))
358 const Functions& wgl = core->getLibrary()->getFunctions();
379 throw NotSupportedError("Unsupported context type for WGL");
413 m_context = wgl.createContextAttribsARB(deviceCtx, NULL, attribList);
416 throw ResourceError("Failed to create WGL context");
418 if (!wgl.makeCurrent(deviceCtx, m_context))
420 wgl.deleteContext(m_context);
427 const Functions& wgl = m_core->getLibrary()->getFunctions();
429 wgl.makeCurrent(m_deviceCtx, NULL);
430 wgl.deleteContext(m_context);
449 const Functions& wgl = m_core->getLibrary()->getFunctions();
450 if (!wgl.swapLayerBuffers(m_deviceCtx, WGL_SWAP_MAIN_PLANE))
454 int choosePixelFormat (const Core& wgl, HDC deviceCtx, const glu::RenderConfig& config)
456 std::vector<int> pixelFormats = wgl.getPixelFormats(deviceCtx);
460 PixelFormatInfo info = wgl.getPixelFormatInfo(deviceCtx, *fmtIter);
464 !(info.pixelType == wgl::PixelFormatInfo::PIXELTYPE_RGBA) ||
466 !(info.surfaceTypes & wgl::PixelFormatInfo::SURFACE_WINDOW))
504 } // wgl