1 #ifndef MSP_GRAPHICS_GLCONTEXT_H_
2 #define MSP_GRAPHICS_GLCONTEXT_H_
17 LATEST_VERSION = 0xFFFFFFFF
24 bool forward_compatible;
26 unsigned gl_version_major;
27 unsigned gl_version_minor;
33 class unsupported_gl_mode: public std::runtime_error
36 unsupported_gl_mode(const GLOptions &);
39 static std::string format_version(const GLOptions &);
53 GLContext(Window &wnd, const GLOptions &opts = GLOptions());
54 GLContext(Window &wnd, unsigned, unsigned);
56 void platform_init(const GLOptions &);
60 void set_swap_interval(unsigned);
64 void window_resized(unsigned, unsigned);
67 } // namespace Graphics