X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Fdevice_backend.h;fp=source%2Fbackends%2Fopengl%2Fdevice_backend.h;h=e64352d3437b082b4f014efa76f894cfaef80f84;hp=0000000000000000000000000000000000000000;hb=f0414f06fc2463e9765c9492dce60e0468dceb3c;hpb=ac4218f733b4c8f09b64e72164bd4321a4c1abd2 diff --git a/source/backends/opengl/device_backend.h b/source/backends/opengl/device_backend.h new file mode 100644 index 00000000..e64352d3 --- /dev/null +++ b/source/backends/opengl/device_backend.h @@ -0,0 +1,26 @@ +#ifndef MSP_GL_DEVICE_BACKEND_H_ +#define MSP_GL_DEVICE_BACKEND_H_ + +#include +#include + +namespace Msp { +namespace GL { + +class OpenGLDevice: public NonCopyable +{ +protected: + Graphics::GLContext context; + + OpenGLDevice(Graphics::Window &, const Graphics::GLOptions &); + + Graphics::GLContext &get_context() { return context; } +}; + +using DeviceBackend = OpenGLDevice; +using DeviceOptions = Graphics::GLOptions; + +} // namespace GL +} // namespace Msp + +#endif