]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/device_backend.h
e64352d3437b082b4f014efa76f894cfaef80f84
[libs/gl.git] / source / backends / opengl / device_backend.h
1 #ifndef MSP_GL_DEVICE_BACKEND_H_
2 #define MSP_GL_DEVICE_BACKEND_H_
3
4 #include <msp/core/noncopyable.h>
5 #include <msp/graphics/glcontext.h>
6
7 namespace Msp {
8 namespace GL {
9
10 class OpenGLDevice: public NonCopyable
11 {
12 protected:
13         Graphics::GLContext context;
14
15         OpenGLDevice(Graphics::Window &, const Graphics::GLOptions &);
16
17         Graphics::GLContext &get_context() { return context; }
18 };
19
20 using DeviceBackend = OpenGLDevice;
21 using DeviceOptions = Graphics::GLOptions;
22
23 } // namespace GL
24 } // namespace Msp
25
26 #endif