+++ /dev/null
-#ifndef MSP_GBASE_GLCONTEXT_H_
-#define MSP_GBASE_GLCONTEXT_H_
-
-#include <stdexcept>
-
-namespace Msp {
-namespace Graphics {
-
-class Display;
-class Window;
-
-struct GLOptions
-{
- bool alpha;
- bool stencil;
- bool doublebuffer;
- unsigned multisample;
-
- GLOptions();
-};
-
-
-class unsupported_gl_mode: public std::runtime_error
-{
-public:
- unsupported_gl_mode(const GLOptions &);
- virtual ~unsupported_gl_mode() throw () { }
-};
-
-
-class GLContext
-{
-private:
- struct Private;
-
- Display &display;
- Window &window;
- Private *priv;
-
-public:
- GLContext(Window &wnd, const GLOptions &opts = GLOptions());
- ~GLContext();
-
- void swap_buffers();
-private:
- void window_resized(unsigned, unsigned);
-};
-
-} // namespace Graphics
-} // namespace Msp
-
-#endif