]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/device_backend.h
Move backend information into Device
[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         void fill_info();
18
19         Graphics::GLContext &get_context() { return context; }
20 };
21
22 using DeviceBackend = OpenGLDevice;
23 using DeviceOptions = Graphics::GLOptions;
24
25 } // namespace GL
26 } // namespace Msp
27
28 #endif