hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/rendering/framebuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rendering/framebuffer.h')
-rw-r--r--src/rendering/framebuffer.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rendering/framebuffer.h b/src/rendering/framebuffer.h
index 1d42d85..a01a81b 100644
--- a/src/rendering/framebuffer.h
+++ b/src/rendering/framebuffer.h
@@ -49,17 +49,17 @@ namespace Donut
public:
virtual ~Framebuffer() = default;
- virtual void bind() = 0;
- virtual void unbind() = 0;
+ virtual auto bind() -> void = 0;
+ virtual auto unbind() -> void = 0;
- virtual void resize(uint32_t width, uint32_t height) = 0;
- virtual int read_pixel(uint32_t attachment_index, int x, int y) = 0;
+ virtual auto resize(uint32_t width, uint32_t height) -> void = 0;
+ virtual auto read_pixel(uint32_t attachment_index, int x, int y) -> int = 0;
- virtual void clear_attachment(uint32_t attachment_index, int value) = 0;
- virtual uint32_t get_color_attachment_renderer_id(uint32_t index = 0) const = 0;
+ virtual auto clear_attachment(uint32_t attachment_index, int value) -> void = 0;
+ virtual auto get_color_attachment_renderer_id(uint32_t index = 0) const -> uint32_t = 0;
- virtual const FramebufferSpecification& get_specification() const = 0;
+ virtual auto get_specification() const -> const FramebufferSpecification& = 0;
- static Ref<Framebuffer> create(const FramebufferSpecification& spec);
+ static auto create(const FramebufferSpecification& spec) -> Ref<Framebuffer>;
};
};