]> git.tdb.fi Git - libs/gui.git/blobdiff - source/gbase/glcontext.h
Add SimpleWindow and SimpleGLWindow
[libs/gui.git] / source / gbase / glcontext.h
index 297bc34b4a4f7c40fe3da8cbefbc258552ae8999..f013df25d228941346042fe096f6aded5d2c1853 100644 (file)
@@ -1,22 +1,18 @@
 /* $Id$
 
 This file is part of libmspgbase
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2007-2008  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
 #ifndef MSP_GBASE_GLCONTEXT_H_
 #define MSP_GBASE_GLCONTEXT_H_
 
-#ifndef WIN32
-#include <GL/glx.h>
-#endif
-#include "types.h"
-
 namespace Msp {
 namespace Graphics {
 
 class Display;
+class Window;
 
 struct GLOptions
 {
@@ -31,18 +27,11 @@ struct GLOptions
 class GLContext
 {
 private:
-#ifdef WIN32
-       typedef HGLRC Context;
-#else
-       typedef GLXContext Context;
-#endif
+       struct Private;
 
        Display &display;
        Window &window;
-       Context context;
-#ifndef WIN32
-       WindowHandle subwnd;
-#endif
+       Private *priv;
 
 public:
        GLContext(Window &wnd, const GLOptions &opts=GLOptions());