-/* $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 {
GLOptions();
};
+
+class unsupported_gl_mode: public std::runtime_error
+{
+public:
+ unsupported_gl_mode(const GLOptions &);
+ virtual ~unsupported_gl_mode() throw () { }
+};
+
+
class GLContext
{
private:
Private *priv;
public:
- GLContext(Window &wnd, const GLOptions &opts=GLOptions());
+ GLContext(Window &wnd, const GLOptions &opts = GLOptions());
~GLContext();
void swap_buffers();