hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/platform/opengl/opengl_texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/opengl/opengl_texture.h')
-rw-r--r--src/platform/opengl/opengl_texture.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/platform/opengl/opengl_texture.h b/src/platform/opengl/opengl_texture.h
index 5e5f6b2..236ab54 100644
--- a/src/platform/opengl/opengl_texture.h
+++ b/src/platform/opengl/opengl_texture.h
@@ -15,13 +15,13 @@ namespace Donut
OpenGLTexture2D(const std::string& path);
virtual ~OpenGLTexture2D();
- virtual uint32_t get_width() const override { return m_width; }
- virtual uint32_t get_height() const override { return m_height; }
- virtual uint32_t get_renderer_id() const override { return m_renderer_id; }
+ virtual auto get_width() const -> uint32_t override{ return m_width; }
+ virtual auto get_height() const -> uint32_t override{ return m_height; }
+ virtual auto get_renderer_id() const -> uint32_t override{ return m_renderer_id; }
- virtual void set_data(void* data, uint32_t size) override;
- virtual void bind(uint32_t slot = 0) const override;
- virtual void bind_as_image(uint32_t slot = 0, bool read_only = false) const override;
+ virtual auto set_data(void* data, uint32_t size) -> void override;
+ virtual auto bind(uint32_t slot = 0) const -> void override;
+ virtual auto bind_as_image(uint32_t slot = 0, bool read_only = false) const -> void override;
virtual bool operator==(const Texture& other) const override
{
@@ -43,13 +43,13 @@ namespace Donut
OpenGLCubemapTexture(const std::string& path);
virtual ~OpenGLCubemapTexture();
- virtual uint32_t get_width() const override { return m_width; }
- virtual uint32_t get_height() const override { return m_height; }
- virtual uint32_t get_renderer_id() const override { return m_renderer_id; }
+ virtual auto get_width() const -> uint32_t override{ return m_width; }
+ virtual auto get_height() const -> uint32_t override{ return m_height; }
+ virtual auto get_renderer_id() const -> uint32_t override{ return m_renderer_id; }
- virtual void set_data(void* data, uint32_t size) override;
- virtual void bind(uint32_t slot = 0) const override;
- virtual void bind_as_image(uint32_t slot = 0, bool read_only = false) const override;
+ virtual auto set_data(void* data, uint32_t size) -> void override;
+ virtual auto bind(uint32_t slot = 0) const -> void override;
+ virtual auto bind_as_image(uint32_t slot = 0, bool read_only = false) const -> void override;
virtual bool operator==(const Texture& other) const override
{
@@ -58,7 +58,7 @@ namespace Donut
private:
void load_hdri(const std::string& path);
- void convert_equirectangular_to_cubemap(float* hdr_data, int width, int height);
+ auto convert_equirectangular_to_cubemap(float* hdr_data, int width, int height) -> void;
std::string m_path;
uint32_t m_width, m_height;