1 #ifndef MSP_GRAPHICS_GLCONTEXT_H_
2 #define MSP_GRAPHICS_GLCONTEXT_H_
18 bool forward_compatible;
20 unsigned gl_version_major;
21 unsigned gl_version_minor;
27 class unsupported_gl_mode: public std::runtime_error
30 unsupported_gl_mode(const GLOptions &);
31 virtual ~unsupported_gl_mode() throw () { }
45 GLContext(Window &wnd, const GLOptions &opts = GLOptions());
47 void platform_init(const GLOptions &);
51 void set_swap_interval(unsigned);
55 void window_resized(unsigned, unsigned);
58 } // namespace Graphics