Lines Matching refs:glw_state

48 glwstate_t glw_state;  variable
63 if ( !glw_state.mcd_accelerated ) in VerifyDriver()
84 wc.lpfnWndProc = (WNDPROC)glw_state.wndproc; in VID_CreateWindow()
87 wc.hInstance = glw_state.hInstance; in VID_CreateWindow()
131 glw_state.hWnd = CreateWindowEx ( in VID_CreateWindow()
139 glw_state.hInstance, in VID_CreateWindow()
142 if (!glw_state.hWnd) in VID_CreateWindow()
145 ShowWindow( glw_state.hWnd, SW_SHOW ); in VID_CreateWindow()
146 UpdateWindow( glw_state.hWnd ); in VID_CreateWindow()
155 SetForegroundWindow( glw_state.hWnd ); in VID_CreateWindow()
156 SetFocus( glw_state.hWnd ); in VID_CreateWindow()
186 if (glw_state.hWnd) in GLimp_SetMode()
330 if ( glw_state.hGLRC ) in GLimp_Shutdown()
332 if ( qwglDeleteContext && !qwglDeleteContext( glw_state.hGLRC ) ) in GLimp_Shutdown()
334 glw_state.hGLRC = NULL; in GLimp_Shutdown()
336 if (glw_state.hDC) in GLimp_Shutdown()
338 if ( !ReleaseDC( glw_state.hWnd, glw_state.hDC ) ) in GLimp_Shutdown()
340 glw_state.hDC = NULL; in GLimp_Shutdown()
342 if (glw_state.hWnd) in GLimp_Shutdown()
344 ShowWindow (glw_state.hWnd, SW_HIDE); in GLimp_Shutdown()
345 DestroyWindow ( glw_state.hWnd ); in GLimp_Shutdown()
346 glw_state.hWnd = NULL; in GLimp_Shutdown()
349 if ( glw_state.log_fp ) in GLimp_Shutdown()
351 fclose( glw_state.log_fp ); in GLimp_Shutdown()
352 glw_state.log_fp = 0; in GLimp_Shutdown()
355 UnregisterClass (WINDOW_CLASS_NAME, glw_state.hInstance); in GLimp_Shutdown()
631 glw_state.allowdisplaydepthchange = false; in GLimp_Init()
645 glw_state.allowdisplaydepthchange = true; in GLimp_Init()
651 glw_state.allowdisplaydepthchange = true; in GLimp_Init()
657 glw_state.allowdisplaydepthchange = true; in GLimp_Init()
668 glw_state.hInstance = ( HINSTANCE ) hinstance; in GLimp_Init()
669 glw_state.wndproc = wndproc; in GLimp_Init()
720 glw_state.minidriver = false; in GLimp_InitGL()
722 glw_state.minidriver = true; in GLimp_InitGL()
727 if ( glw_state.hDC != NULL ) in GLimp_InitGL()
730 if ( ( glw_state.hDC = GetDC( glw_state.hWnd ) ) == NULL ) in GLimp_InitGL()
736 if ( glw_state.minidriver ) in GLimp_InitGL()
738 if ( (pixelformat = qwglChoosePixelFormat( glw_state.hDC, &pfd)) == 0 ) in GLimp_InitGL()
743 if ( qwglSetPixelFormat( glw_state.hDC, pixelformat, &pfd) == FALSE ) in GLimp_InitGL()
748 qwglDescribePixelFormat( glw_state.hDC, pixelformat, sizeof( pfd ), &pfd ); in GLimp_InitGL()
752 if ( ( pixelformat = ChoosePixelFormat( glw_state.hDC, &pfd)) == 0 ) in GLimp_InitGL()
757 if ( SetPixelFormat( glw_state.hDC, pixelformat, &pfd) == FALSE ) in GLimp_InitGL()
762 DescribePixelFormat( glw_state.hDC, pixelformat, sizeof( pfd ), &pfd ); in GLimp_InitGL()
766 glw_state.mcd_accelerated = false; in GLimp_InitGL()
770 glw_state.mcd_accelerated = true; in GLimp_InitGL()
788 if ( ( glw_state.hGLRC = qwglCreateContext( glw_state.hDC ) ) == 0 ) in GLimp_InitGL()
794 if ( !qwglMakeCurrent( glw_state.hDC, glw_state.hGLRC ) ) in GLimp_InitGL()
818 if ( glw_state.hGLRC ) in GLimp_InitGL()
820 qwglDeleteContext( glw_state.hGLRC ); in GLimp_InitGL()
821 glw_state.hGLRC = NULL; in GLimp_InitGL()
824 if ( glw_state.hDC ) in GLimp_InitGL()
826 ReleaseDC( glw_state.hWnd, glw_state.hDC ); in GLimp_InitGL()
827 glw_state.hDC = NULL; in GLimp_InitGL()
839 if ( gl_bitdepth->value != 0 && !glw_state.allowdisplaydepthchange ) in GLimp_BeginFrame()
877 if ( !qwglSwapBuffers( glw_state.hDC ) ) in GLimp_EndFrame()
892 SetForegroundWindow( glw_state.hWnd ); in GLimp_AppActivate()
893 ShowWindow( glw_state.hWnd, SW_RESTORE ); in GLimp_AppActivate()
898 ShowWindow( glw_state.hWnd, SW_MINIMIZE ); in GLimp_AppActivate()