Lines Matching refs:hGLRC
184 HGLRC hGLRC; member
592 void createGlContext(HWND hWnd, HDC& hGLDC, HGLRC& hGLRC, bool& useGl) in createGlContext() argument
635 hGLRC = wglCreateContext(hGLDC); in createGlContext()
636 if (!hGLRC) in createGlContext()
639 if (!wglMakeCurrent(hGLDC, hGLRC)) in createGlContext()
653 if (window->hGLRC) in releaseGlContext()
655 wglDeleteContext(window->hGLRC); in releaseGlContext()
656 window->hGLRC = NULL; in releaseGlContext()
676 if (!wglMakeCurrent(window->dc, window->hGLRC)) in drawGl()
696 if (!wglMakeCurrent(window->dc, window->hGLRC)) in resizeGl()
723 HGLRC hGLRC; in cvNamedWindow() local
767 hGLRC = 0; in cvNamedWindow()
770 createGlContext(hWnd, hGLDC, hGLRC, useGl); in cvNamedWindow()
792 window->hGLRC = 0; in cvNamedWindow()
798 window->hGLRC = hGLRC; in cvNamedWindow()
851 if (!wglMakeCurrent(window->dc, window->hGLRC)) in cvSetOpenGlContext()