1 #ifndef MSP_GRAPHICS_GLCONTEXT_H_
2 #define MSP_GRAPHICS_GLCONTEXT_H_
18 bool forward_compatible;
19 unsigned gl_version_major;
20 unsigned gl_version_minor;
26 class unsupported_gl_mode: public std::runtime_error
29 unsupported_gl_mode(const GLOptions &);
30 virtual ~unsupported_gl_mode() throw () { }
44 GLContext(Window &wnd, const GLOptions &opts = GLOptions());
46 void platform_init(const GLOptions &);
50 void set_swap_interval(unsigned);
54 void window_resized(unsigned, unsigned);
57 } // namespace Graphics