]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/framebuffer_backend.h
Add correct copy and move semantics to most classes
[libs/gl.git] / source / backends / opengl / framebuffer_backend.h
index 7a7ebfbe82d3da5a8fa577ab3cb0c67b59d6faf9..24f43441b3aacb333821cb7d7823edf81b318153 100644 (file)
@@ -2,12 +2,13 @@
 #define MSP_GL_FRAMEBUFFER_BACKEND_H_
 
 #include <string>
+#include <msp/core/noncopyable.h>
 #include "frameformat.h"
 
 namespace Msp {
 namespace GL {
 
-class OpenGLFramebuffer
+class OpenGLFramebuffer: public NonCopyable
 {
        friend class OpenGLCommands;
        friend class OpenGLPipelineState;
@@ -17,6 +18,7 @@ protected:
        mutable unsigned status;
 
        OpenGLFramebuffer(bool);
+       OpenGLFramebuffer(OpenGLFramebuffer &&);
        ~OpenGLFramebuffer();
 
        void set_system_format(const FrameFormat &);