]> git.tdb.fi Git - libs/gui.git/blobdiff - source/gbase/glcontext.h
Exception changes
[libs/gui.git] / source / gbase / glcontext.h
index a719b85d82ee134174e444bd68e33a21797a75c9..dfac328d9846f550d680cb5695d5ec9694856d28 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef MSP_GBASE_GLCONTEXT_H_
 #define MSP_GBASE_GLCONTEXT_H_
 
+#include <stdexcept>
+
 namespace Msp {
 namespace Graphics {
 
@@ -17,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: