]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/vertexsetup_backend.h
Add correct copy and move semantics to most classes
[libs/gl.git] / source / backends / opengl / vertexsetup_backend.h
index 954dcc7f8fe3c5ca029303194f44266ec5ffb641..e0dae1bc970e4c871ad5e1b7f2f65668cfa02965 100644 (file)
@@ -1,13 +1,15 @@
 #ifndef MSP_GL_VERTEXSETUP_BACKEND_H_
 #define MSP_GL_VERTEXSETUP_BACKEND_H_
 
+#include <msp/core/noncopyable.h>
+
 namespace Msp {
 namespace GL {
 
 class VertexArray;
 class VertexFormat;
 
-class OpenGLVertexSetup
+class OpenGLVertexSetup: public NonCopyable
 {
        friend class OpenGLPipelineState;
 
@@ -15,6 +17,7 @@ protected:
        unsigned id;
 
        OpenGLVertexSetup();
+       OpenGLVertexSetup(OpenGLVertexSetup &&);
        ~OpenGLVertexSetup();
 
        static void require_format(const VertexFormat &, bool);