Hymn to Beauty
C++ 3D Engine
OpenGLSampler.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "../Interface/Sampler.hpp"
4
5#include <glad/glad.h>
6
7namespace Video {
8
10class OpenGLSampler : public Sampler {
11 public:
13
17 OpenGLSampler(Filter filter, Clamping clamping);
18
20 ~OpenGLSampler() final;
21
23
28 GLuint GetSampler(bool mipmap) const;
29
30 private:
31 OpenGLSampler(const OpenGLSampler& other) = delete;
32
33 GLuint sampler[2];
34};
35
36} // namespace Video
OpenGL implementation of Sampler.
Definition: OpenGLSampler.hpp:10
~OpenGLSampler() final
Destructor.
Definition: OpenGLSampler.cpp:44
OpenGLSampler(Filter filter, Clamping clamping)
Create new OpenGL sampler.
Definition: OpenGLSampler.cpp:7
GLuint GetSampler(bool mipmap) const
Get the sampler.
Definition: OpenGLSampler.cpp:46
Determines how a texture should be sampled.
Definition: Sampler.hpp:6
Filter
The interpolation to apply.
Definition: Sampler.hpp:9
Clamping
How to handle sampling outside the texture dimensions.
Definition: Sampler.hpp:16
Definition: Editor.hpp:18