2 #include <msp/strings/format.h>
11 GLOptions::GLOptions():
19 unsupported_gl_mode::unsupported_gl_mode(const GLOptions &opts):
20 runtime_error(format("{ .alpha=%s, .stencil=%s, .doublebuffer=%s, .multisample=%d }",
21 opts.alpha, opts.stencil, opts.doublebuffer, opts.multisample))
26 GLContext::GLContext(Window &wnd, const GLOptions &opts):
27 display(wnd.get_display()),
32 window.signal_resize.connect(sigc::mem_fun(this, &GLContext::window_resized));
36 void GLContext::platform_init(const GLOptions &)
38 throw runtime_error("no OpenGL support");
41 GLContext::~GLContext()
44 void GLContext::swap_buffers()
47 void GLContext::window_resized(unsigned, unsigned)
51 } // namespace Graphics