]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/sampler_backend.h
Add support for padding in vertex formats
[libs/gl.git] / source / backends / opengl / sampler_backend.h
index 77590c254b000c0d50b6e0c28fd6a901f6789db1..f90fbb22e298fd4b86f37b5b2e5bf6b97b57321b 100644 (file)
@@ -1,17 +1,21 @@
 #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;
 
 protected:
-       unsigned id;
+       unsigned id = 0;
 
        OpenGLSampler();
+       OpenGLSampler(OpenGLSampler &&);
+       ~OpenGLSampler();
 
        static bool check_anisotropic(bool);