1 #ifndef MSP_GRAPHICS_GLCONTEXT_H_
2 #define MSP_GRAPHICS_GLCONTEXT_H_
17 LATEST_VERSION = 0xFFFFFFFF
22 bool doublebuffer = true;
23 unsigned multisample = 0;
24 bool forward_compatible = false;
25 bool core_profile = false;
26 unsigned gl_version_major = DEFAULT_VERSION;
27 unsigned gl_version_minor = DEFAULT_VERSION;
31 class unsupported_gl_mode: public std::runtime_error
34 unsupported_gl_mode(const GLOptions &);
37 static std::string format_version(const GLOptions &);
51 GLContext(Window &wnd, const GLOptions &opts = GLOptions());
52 GLContext(Window &wnd, unsigned, unsigned);
54 void platform_init(const GLOptions &);
58 void set_swap_interval(unsigned);
62 void window_resized(unsigned, unsigned);
65 } // namespace Graphics