]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/windowview_backend.h
Restructure system framebuffer and make WindowView own it
[libs/gl.git] / source / backends / opengl / windowview_backend.h
1 #ifndef MSP_GL_WINDOWVIEW_BACKEND_H_
2 #define MSP_GL_WINDOWVIEW_BACKEND_H_
3
4 #include "systemframebuffer.h"
5 #include "view.h"
6
7 namespace Msp {
8 namespace GL {
9
10 class OpenGLWindowView: public View
11 {
12 protected:
13         OpenGLSystemFramebuffer sys_framebuf;
14
15         OpenGLWindowView() = default;
16
17         virtual const Framebuffer &get_target() const { return sys_framebuf; }
18
19         void resize_framebuffer(unsigned, unsigned);
20 };
21
22 using WindowViewBackend = OpenGLWindowView;
23
24 } // namespace GL
25 } // namespace Msp
26
27 #endif