Lines Matching refs:glw_state

42 glwstate_t glw_state;  variable
54 if ( !glw_state.mcd_accelerated ) in VerifyDriver()
75 wc.lpfnWndProc = (WNDPROC)glw_state.wndproc; in VID_CreateWindow()
78 wc.hInstance = glw_state.hInstance; in VID_CreateWindow()
122 glw_state.hWnd = CreateWindowEx ( in VID_CreateWindow()
130 glw_state.hInstance, in VID_CreateWindow()
133 if (!glw_state.hWnd) in VID_CreateWindow()
136 ShowWindow( glw_state.hWnd, SW_SHOW ); in VID_CreateWindow()
137 UpdateWindow( glw_state.hWnd ); in VID_CreateWindow()
146 SetForegroundWindow( glw_state.hWnd ); in VID_CreateWindow()
147 SetFocus( glw_state.hWnd ); in VID_CreateWindow()
177 if (glw_state.hWnd) in GLimp_SetMode()
306 if ( glw_state.hGLRC ) in GLimp_Shutdown()
308 if ( qwglDeleteContext && !qwglDeleteContext( glw_state.hGLRC ) ) in GLimp_Shutdown()
310 glw_state.hGLRC = NULL; in GLimp_Shutdown()
312 if (glw_state.hDC) in GLimp_Shutdown()
314 if ( !ReleaseDC( glw_state.hWnd, glw_state.hDC ) ) in GLimp_Shutdown()
316 glw_state.hDC = NULL; in GLimp_Shutdown()
318 if (glw_state.hWnd) in GLimp_Shutdown()
320 DestroyWindow ( glw_state.hWnd ); in GLimp_Shutdown()
321 glw_state.hWnd = NULL; in GLimp_Shutdown()
324 if ( glw_state.log_fp ) in GLimp_Shutdown()
326 fclose( glw_state.log_fp ); in GLimp_Shutdown()
327 glw_state.log_fp = 0; in GLimp_Shutdown()
330 UnregisterClass (WINDOW_CLASS_NAME, glw_state.hInstance); in GLimp_Shutdown()
355 glw_state.allowdisplaydepthchange = false; in GLimp_Init()
361 glw_state.allowdisplaydepthchange = true; in GLimp_Init()
367 glw_state.allowdisplaydepthchange = true; in GLimp_Init()
373 glw_state.allowdisplaydepthchange = true; in GLimp_Init()
384 glw_state.hInstance = ( HINSTANCE ) hinstance; in GLimp_Init()
385 glw_state.wndproc = wndproc; in GLimp_Init()
436 glw_state.minidriver = false; in GLimp_InitGL()
438 glw_state.minidriver = true; in GLimp_InitGL()
443 if ( glw_state.hDC != NULL ) in GLimp_InitGL()
446 if ( ( glw_state.hDC = GetDC( glw_state.hWnd ) ) == NULL ) in GLimp_InitGL()
452 if ( glw_state.minidriver ) in GLimp_InitGL()
454 if ( (pixelformat = qwglChoosePixelFormat( glw_state.hDC, &pfd)) == 0 ) in GLimp_InitGL()
459 if ( qwglSetPixelFormat( glw_state.hDC, pixelformat, &pfd) == FALSE ) in GLimp_InitGL()
464 qwglDescribePixelFormat( glw_state.hDC, pixelformat, sizeof( pfd ), &pfd ); in GLimp_InitGL()
468 if ( ( pixelformat = ChoosePixelFormat( glw_state.hDC, &pfd)) == 0 ) in GLimp_InitGL()
473 if ( SetPixelFormat( glw_state.hDC, pixelformat, &pfd) == FALSE ) in GLimp_InitGL()
478 DescribePixelFormat( glw_state.hDC, pixelformat, sizeof( pfd ), &pfd ); in GLimp_InitGL()
485 glw_state.mcd_accelerated = true; in GLimp_InitGL()
487 glw_state.mcd_accelerated = false; in GLimp_InitGL()
491 glw_state.mcd_accelerated = true; in GLimp_InitGL()
509 if ( ( glw_state.hGLRC = qwglCreateContext( glw_state.hDC ) ) == 0 ) in GLimp_InitGL()
516 if ( !qwglMakeCurrent( glw_state.hDC, glw_state.hGLRC ) ) in GLimp_InitGL()
537 if ( glw_state.hGLRC ) in GLimp_InitGL()
539 qwglDeleteContext( glw_state.hGLRC ); in GLimp_InitGL()
540 glw_state.hGLRC = NULL; in GLimp_InitGL()
543 if ( glw_state.hDC ) in GLimp_InitGL()
545 ReleaseDC( glw_state.hWnd, glw_state.hDC ); in GLimp_InitGL()
546 glw_state.hDC = NULL; in GLimp_InitGL()
558 if ( gl_bitdepth->value != 0 && !glw_state.allowdisplaydepthchange ) in GLimp_BeginFrame()
596 if ( !qwglSwapBuffers( glw_state.hDC ) ) in GLimp_EndFrame()
608 SetForegroundWindow( glw_state.hWnd ); in GLimp_AppActivate()
609 ShowWindow( glw_state.hWnd, SW_RESTORE ); in GLimp_AppActivate()
614 ShowWindow( glw_state.hWnd, SW_MINIMIZE ); in GLimp_AppActivate()