]> git.tdb.fi Git - libs/gl.git/blob - source/backends/opengl/sampler_backend.h
77590c254b000c0d50b6e0c28fd6a901f6789db1
[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;
13
14         OpenGLSampler();
15
16         static bool check_anisotropic(bool);
17
18         void update(unsigned) const;
19
20         void set_debug_name(const std::string &);
21 };
22
23 using SamplerBackend = OpenGLSampler;
24
25 unsigned get_gl_filter(unsigned);
26 unsigned get_gl_wrap(unsigned);
27
28 } // namespace GL
29 } // namespace Msp
30
31 #endif