Lines Matching refs:deviceCtx
304 std::vector<int> Core::getPixelFormats (HDC deviceCtx) const
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]))
355 PixelFormatInfo Core::getPixelFormatInfo (HDC deviceCtx, int pixelFormat) const
387 getPixelFormatAttribs(wgl, deviceCtx, pixelFormat, static_cast<int>(s_attribsToQuery.size()), s_attribsToQuery.data(), &values);
422 HDC deviceCtx,
428 , m_deviceCtx (deviceCtx)
522 if (!DescribePixelFormat(deviceCtx, pixelFormat, sizeof(pixelFormatDesc), &pixelFormatDesc))
525 if (!SetPixelFormat(deviceCtx, pixelFormat, &pixelFormatDesc))
537 m_context = wgl.createContextAttribsARB(deviceCtx, sharedCtx, &attribList[0]);
542 if (!wgl.makeCurrent(deviceCtx, m_context))
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);