]> git.tdb.fi Git - libs/gl.git/blob - source/render/offscreenview.h
Add support for storage images in Renderer and PipelineState
[libs/gl.git] / source / render / offscreenview.h
1 #ifndef MSP_GL_OFFSCREENVIEW_H_
2 #define MSP_GL_OFFSCREENVIEW_H_
3
4 #include "view.h"
5
6 namespace Msp {
7 namespace GL {
8
9 class Framebuffer;
10 class RenderTarget;
11
12 /**
13 A View targeting an offscreen framebuffer.
14 */
15 class OffscreenView: public View
16 {
17 private:
18         Framebuffer ⌖
19
20 public:
21         OffscreenView(Framebuffer &);
22         OffscreenView(RenderTarget &);
23
24 private:
25         virtual const Framebuffer &get_target() const { return target; }
26 };
27
28 } // namespace GL
29 } // namespace Msp
30
31 #endif