MOS
blit_target.hpp
1 #pragma once
2 
3 #include <glad/glad.h>
4 #include <glm/glm.hpp>
5 
6 namespace mos::gl {
7 
8 class Blit_target {
9  friend class Renderer;
10 private:
11  explicit Blit_target(const glm::ivec2 &resolution,
12  GLint precision = GL_RGB16F);
13 public:
14  ~Blit_target();
15  Blit_target(const Blit_target &target) = delete;
16  Blit_target(Blit_target &&target) = delete;
17  Blit_target &operator=(const Blit_target &target) = delete;
18  Blit_target &operator=(Blit_target &&target) = delete;
19  const GLuint frame_buffer{};
20  const GLuint texture{};
21  const GLuint depth_texture{};
22  const glm::ivec2 resolution;
23 };
24 }
Definition: array_buffers.hpp:5
Render geometry shapes with OpenGL.
Definition: renderer.hpp:40
Definition: blit_target.hpp:8