1 #ifndef MSP_GL_DEVICE_BACKEND_H_
2 #define MSP_GL_DEVICE_BACKEND_H_
4 #include <msp/core/noncopyable.h>
5 #include <msp/graphics/glcontext.h>
10 class OpenGLDevice: public NonCopyable
13 Graphics::GLContext context;
15 OpenGLDevice(Graphics::Window &, const Graphics::GLOptions &);
17 static Graphics::GLOptions create_default_options();
21 Graphics::GLContext &get_context() { return context; }
24 using DeviceBackend = OpenGLDevice;
25 using DeviceOptions = Graphics::GLOptions;