]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/sampler_backend.h
Add correct copy and move semantics to most classes
[libs/gl.git] / source / backends / opengl / sampler_backend.h
index 2f644431c39983894d00207cd8b10e2ca4ede1e4..f90fbb22e298fd4b86f37b5b2e5bf6b97b57321b 100644 (file)
@@ -1,10 +1,12 @@
 #ifndef MSP_GL_SAMPLER_BACKEND_H_
 #define MSP_GL_SAMPLER_BACKEND_H_
 
+#include <msp/core/noncopyable.h>
+
 namespace Msp {
 namespace GL {
 
-class OpenGLSampler
+class OpenGLSampler: public NonCopyable
 {
        friend class OpenGLPipelineState;
 
@@ -12,6 +14,7 @@ protected:
        unsigned id = 0;
 
        OpenGLSampler();
+       OpenGLSampler(OpenGLSampler &&);
        ~OpenGLSampler();
 
        static bool check_anisotropic(bool);