]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/sampler_backend.h
Move all OpenGL-specific code to a separate directory
[libs/gl.git] / source / backends / opengl / sampler_backend.h
diff --git a/source/backends/opengl/sampler_backend.h b/source/backends/opengl/sampler_backend.h
new file mode 100644 (file)
index 0000000..77590c2
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef MSP_GL_SAMPLER_BACKEND_H_
+#define MSP_GL_SAMPLER_BACKEND_H_
+
+namespace Msp {
+namespace GL {
+
+class OpenGLSampler
+{
+       friend class OpenGLPipelineState;
+
+protected:
+       unsigned id;
+
+       OpenGLSampler();
+
+       static bool check_anisotropic(bool);
+
+       void update(unsigned) const;
+
+       void set_debug_name(const std::string &);
+};
+
+using SamplerBackend = OpenGLSampler;
+
+unsigned get_gl_filter(unsigned);
+unsigned get_gl_wrap(unsigned);
+
+} // namespace GL
+} // namespace Msp
+
+#endif