This is a fairly thin wrapper around RenderTarget, mostly useful as an
abstraction.
--- /dev/null
+#include "offscreenview.h"
+#include "rendertarget.h"
+
+namespace Msp {
+namespace GL {
+
+OffscreenView::OffscreenView(Framebuffer &t):
+ View(t)
+{ }
+
+OffscreenView::OffscreenView(RenderTarget &t):
+ View(t.get_framebuffer())
+{ }
+
+} // namespace GL
+} // namespace Msp
--- /dev/null
+#ifndef MSP_GL_OFFSCREENVIEW_H_
+#define MSP_GL_OFFSCREENVIEW_H_
+
+#include "view.h"
+
+namespace Msp {
+namespace GL {
+
+class Framebuffer;
+class RenderTarget;
+
+class OffscreenView: public View
+{
+public:
+ OffscreenView(Framebuffer &);
+ OffscreenView(RenderTarget &);
+};
+
+} // namespace GL
+} // namespace Msp
+
+#endif