]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/program_backend.h
Add correct copy and move semantics to most classes
[libs/gl.git] / source / backends / opengl / program_backend.h
index b08b70fae968e5992e1e7e026aaa5f7004c78430..2a223ff5ae1b50ffc46fc343c4a45996a04208cc 100644 (file)
@@ -4,12 +4,13 @@
 #include <map>
 #include <string>
 #include <vector>
+#include <msp/core/noncopyable.h>
 #include "reflectdata.h"
 
 namespace Msp {
 namespace GL {
 
-class OpenGLProgram
+class OpenGLProgram: public NonCopyable
 {
        friend class OpenGLPipelineState;
 
@@ -46,6 +47,7 @@ protected:
        std::string debug_name;
 
        OpenGLProgram();
+       OpenGLProgram(OpenGLProgram &&);
        ~OpenGLProgram();
 
        bool has_stages() const;