]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/sampler_backend.h
Add missing destructor to OpenGLSampler
[libs/gl.git] / source / backends / opengl / sampler_backend.h
1 #ifndef MSP_GL_SAMPLER_BACKEND_H_
2 #define MSP_GL_SAMPLER_BACKEND_H_
3
4 namespace Msp {
5 namespace GL {
6
7 class OpenGLSampler
8 {
9         friend class OpenGLPipelineState;
10
11 protected:
12         unsigned id = 0;
13
14         OpenGLSampler();
15         ~OpenGLSampler();
16
17         static bool check_anisotropic(bool);
18
19         void update(unsigned) const;
20
21         void set_debug_name(const std::string &);
22 };
23
24 using SamplerBackend = OpenGLSampler;
25
26 unsigned get_gl_filter(unsigned);
27 unsigned get_gl_wrap(unsigned);
28
29 } // namespace GL
30 } // namespace Msp
31
32 #endif