From a579c9612cc0db5cb6fca13df55305304d784b38 Mon Sep 17 00:00:00 2001 From: Tom Hicks Date: Sun, 26 Jun 2005 11:01:37 -0400 Subject: [PATCH] The windows portion of Window is properly abstract now. ~g2k --- include/window.h | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/include/window.h b/include/window.h index 81c992d..1b95f63 100644 --- a/include/window.h +++ b/include/window.h @@ -21,27 +21,6 @@ namespace OpenArena class Window: public SCREEN { - public: -#ifdef __linux - Display* display; - int screen; - ::Window window; - GLXContext hRC; - XSetWindowAttributes attributes; - bool doubleBuffered; - XF86VidModeModeInfo vidMode; - int x, y; - private: -#endif -#ifdef WIN32 - HGLRC glContext; - HWND window; - private: - HDC deviceContext; - HINSTANCE instance; -#endif - - public: Window(); ~Window(); @@ -52,9 +31,25 @@ namespace OpenArena void SetOnResize(ResizeFunc function); void SwapBuffers(); + #ifdef __linux + Display* display; + int screen; + ::Window window; + GLXContext hRC; + XSetWindowAttributes attributes; + bool doubleBuffered; + XF86VidModeModeInfo vidMode; + int x, y; + #endif private: ResizeFunc OnResize; InitFunc OnInit; + #ifdef WIN32 + HGLRC glContext; + HWND window; + HDC deviceContext; + HINSTANCE instance; + #endif }; void DefaultResize(GLsizei width, GLsizei height);