Lines Matching defs:wgl
151 namespace wgl
306 const Functions& wgl = m_library->getFunctions();
311 if (!wgl.getPixelFormatAttribivARB(deviceCtx, 0, 0, DE_LENGTH_OF_ARRAY(attribs), &attribs[0], &values[0]))
344 static void getPixelFormatAttribs (const Functions& wgl, HDC deviceCtx, int pixelFormat, int numAttribs, const int* attribs, std::map<int, int>* dst)
348 if (!wgl.getPixelFormatAttribivARB(deviceCtx, pixelFormat, 0, numAttribs, &attribs[0], &values[0]))
384 const Functions& wgl = m_library->getFunctions();
387 getPixelFormatAttribs(wgl, deviceCtx, pixelFormat, static_cast<int>(s_attribsToQuery.size()), s_attribsToQuery.data(), &values);
431 const Functions& wgl = core->getLibrary()->getFunctions();
537 m_context = wgl.createContextAttribsARB(deviceCtx, sharedCtx, &attribList[0]);
542 if (!wgl.makeCurrent(deviceCtx, m_context))
544 wgl.deleteContext(m_context);
554 const Functions& wgl = m_core->getLibrary()->getFunctions();
556 wgl.makeCurrent(m_deviceCtx, NULL);
557 wgl.deleteContext(m_context);
576 const Functions& wgl = m_core->getLibrary()->getFunctions();
577 if (!wgl.makeCurrent(m_deviceCtx, m_context))
583 const Functions& wgl = m_core->getLibrary()->getFunctions();
584 if (!wgl.swapLayerBuffers(m_deviceCtx, WGL_SWAP_MAIN_PLANE))
593 if (info.acceleration != wgl::PixelFormatInfo::ACCELERATION_FULL)
596 if (info.pixelType != wgl::PixelFormatInfo::PIXELTYPE_RGBA)
599 if ((info.surfaceTypes & wgl::PixelFormatInfo::SURFACE_WINDOW) == 0)
614 int choosePixelFormat (const Core& wgl, HDC deviceCtx, const glu::RenderConfig& config)
616 std::vector<int> pixelFormats = wgl.getPixelFormats(deviceCtx);
620 const PixelFormatInfo info = wgl.getPixelFormatInfo(deviceCtx, *fmtIter);
661 } // wgl