]> git.tdb.fi Git - libs/gui.git/blobdiff - source/gbase/glcontext.h
Exception changes
[libs/gui.git] / source / gbase / glcontext.h
index f013df25d228941346042fe096f6aded5d2c1853..dfac328d9846f550d680cb5695d5ec9694856d28 100644 (file)
@@ -1,13 +1,8 @@
-/* $Id$
-
-This file is part of libmspgbase
-Copyright © 2007-2008  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GBASE_GLCONTEXT_H_
 #define MSP_GBASE_GLCONTEXT_H_
 
+#include <stdexcept>
+
 namespace Msp {
 namespace Graphics {
 
@@ -24,6 +19,15 @@ struct GLOptions
        GLOptions();
 };
 
+
+class unsupported_gl_mode: public std::runtime_error
+{
+public:
+       unsupported_gl_mode(const GLOptions &);
+       virtual ~unsupported_gl_mode() throw () { }
+};
+
+
 class GLContext
 {
 private:
@@ -34,7 +38,7 @@ private:
        Private *priv;
 
 public:
-       GLContext(Window &wnd, const GLOptions &opts=GLOptions());
+       GLContext(Window &wnd, const GLOptions &opts = GLOptions());
        ~GLContext();
 
        void swap_buffers();