]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/view.h
Add correct copy and move semantics to most classes
[libs/gl.git] / source / render / view.h
index bdddb65d31b977cf896cdd3dacc1d89c470cfbd8..b8a116a65e3b80435a4aa4cdae39020dffad6252 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_GL_VIEW_H_
 #define MSP_GL_VIEW_H_
 
+#include <msp/core/noncopyable.h>
 #include "framebuffer.h"
 
 namespace Msp {
@@ -17,7 +18,7 @@ application in some way.
 The content renderable's render() function is called with an empty tag.  A
 Sequence can be used to specify other tags and add post-processing.
 */
-class View
+class View: public NonCopyable
 {
 protected:
        Camera *camera = 0;
@@ -26,6 +27,7 @@ protected:
 
        View() = default;
 public:
+       View(View &&);
        virtual ~View();
 
        virtual unsigned get_width() const { return get_target().get_width(); }