X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Fwindowview_backend.h;fp=source%2Fbackends%2Fopengl%2Fwindowview_backend.h;h=f51c4bb60597f7600dbd05d180da896dd786d74c;hb=b9e720f36185c6fe4d39a1056ecb88dec0ce950d;hp=0000000000000000000000000000000000000000;hpb=4080571d24c1734a9188ee7fac38cf3180325adf;p=libs%2Fgl.git diff --git a/source/backends/opengl/windowview_backend.h b/source/backends/opengl/windowview_backend.h new file mode 100644 index 00000000..f51c4bb6 --- /dev/null +++ b/source/backends/opengl/windowview_backend.h @@ -0,0 +1,27 @@ +#ifndef MSP_GL_WINDOWVIEW_BACKEND_H_ +#define MSP_GL_WINDOWVIEW_BACKEND_H_ + +#include "systemframebuffer.h" +#include "view.h" + +namespace Msp { +namespace GL { + +class OpenGLWindowView: public View +{ +protected: + OpenGLSystemFramebuffer sys_framebuf; + + OpenGLWindowView() = default; + + virtual const Framebuffer &get_target() const { return sys_framebuf; } + + void resize_framebuffer(unsigned, unsigned); +}; + +using WindowViewBackend = OpenGLWindowView; + +} // namespace GL +} // namespace Msp + +#endif