]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/windowview_backend.h
Check the flat qualifier from the correct member
[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 void render();
18         virtual const Framebuffer &get_target() const { return sys_framebuf; }
19
20         void resize_framebuffer(unsigned, unsigned);
21 };
22
23 using WindowViewBackend = OpenGLWindowView;
24
25 } // namespace GL
26 } // namespace Msp
27
28 #endif