aboutsummaryrefslogtreecommitdiff
path: root/src/platform/opengl/opengl_framebuffer.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-20 22:20:49 +0200
committerhachem <im@hachem.wtf>2026-08-20 22:20:49 +0200
commit45baf48db974c66cfdc51f26cee191abbbd89a0b (patch)
treeb60c27506f1e1c37b7238161156c83e7e159fc12 /src/platform/opengl/opengl_framebuffer.h
parent00bf9a8cce28ab1dbc77ba24428be12391c4a576 (diff)
[feat]: reduce renderer abstraction
Diffstat (limited to 'src/platform/opengl/opengl_framebuffer.h')
-rw-r--r--src/platform/opengl/opengl_framebuffer.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/platform/opengl/opengl_framebuffer.h b/src/platform/opengl/opengl_framebuffer.h
deleted file mode 100644
index 456d924..0000000
--- a/src/platform/opengl/opengl_framebuffer.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#pragma once
-
-#include "rendering/framebuffer.h"
-
-namespace Donut
-{
- class OpenGLFramebuffer : public Framebuffer
- {
- public:
- OpenGLFramebuffer(const FramebufferSpecification& spec);
- virtual ~OpenGLFramebuffer();
-
- auto invalidate() -> void;
-
- virtual auto bind() -> void override;
- virtual auto unbind() -> void override;
-
- virtual auto resize(uint32_t width, uint32_t height) -> void override;
- virtual auto read_pixel(uint32_t attachment_index, int x, int y) -> int override;
-
- virtual auto clear_attachment(uint32_t attachment_index, int value) -> void override;
- virtual auto get_color_attachment_renderer_id(uint32_t index = 0) const -> uint32_t override{ return m_color_attachments[index]; }
-
- virtual auto get_specification() const -> const FramebufferSpecification& override{ return m_specification; }
- private:
- uint32_t m_renderer_id = 0;
- FramebufferSpecification m_specification;
-
- std::vector<FramebufferTextureSpecification> m_color_attachment_specifications;
- FramebufferTextureSpecification m_depth_attachment_specification = FramebufferTextureFormat::None;
-
- std::vector<uint32_t> m_color_attachments;
- uint32_t m_depth_attachment = 0;
- };
-};