]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/query_backend.h
Add correct copy and move semantics to most classes
[libs/gl.git] / source / backends / opengl / query_backend.h
index 7bbbeb66a24037acf82894622c6d6882cba31407..ccda73b0b9e57cebf7ab31540aa898b501d2badb 100644 (file)
@@ -1,12 +1,13 @@
 #ifndef MSP_GL_QUERY_BACKEND_H_
 #define MSP_GL_QUERY_BACKEND_H_
 
+#include <msp/core/noncopyable.h>
 #include <vector>
 
 namespace Msp {
 namespace GL {
 
-class OpenGLQueryPool
+class OpenGLQueryPool: public NonCopyable
 {
        friend class OpenGLCommands;
 
@@ -15,6 +16,7 @@ protected:
        std::vector<unsigned> queries;
 
        OpenGLQueryPool(unsigned);
+       OpenGLQueryPool(OpenGLQueryPool &&);
        ~OpenGLQueryPool();
 
        void resize();