X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgbase%2Fglcontext.h;h=f013df25d228941346042fe096f6aded5d2c1853;hb=8f8480438244fd04058049ace22071a8e2e0b85c;hp=297bc34b4a4f7c40fe3da8cbefbc258552ae8999;hpb=999ca92aa9ee10585c0b2094d84364159253982f;p=libs%2Fgui.git diff --git a/source/gbase/glcontext.h b/source/gbase/glcontext.h index 297bc34..f013df2 100644 --- a/source/gbase/glcontext.h +++ b/source/gbase/glcontext.h @@ -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 -#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());