GLW_WIN.H 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. #ifndef _WIN32
  19. # error You should not be including this file on this platform
  20. #endif
  21. #ifndef __GLW_WIN_H__
  22. #define __GLW_WIN_H__
  23. typedef struct
  24. {
  25. HINSTANCE hInstance;
  26. void *wndproc;
  27. HDC hDC; // handle to device context
  28. HWND hWnd; // handle to window
  29. HGLRC hGLRC; // handle to GL rendering context
  30. HINSTANCE hinstOpenGL; // HINSTANCE for the OpenGL library
  31. qboolean minidriver;
  32. qboolean allowdisplaydepthchange;
  33. qboolean mcd_accelerated;
  34. FILE *log_fp;
  35. } glwstate_t;
  36. extern glwstate_t glw_state;
  37. #endif