hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/rendering/texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rendering/texture.h')
-rw-r--r--src/rendering/texture.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/rendering/texture.h b/src/rendering/texture.h
index 68866b5..e9f369f 100644
--- a/src/rendering/texture.h
+++ b/src/rendering/texture.h
@@ -11,15 +11,16 @@ namespace Donut
public:
virtual ~Texture() = default;
- virtual uint32_t get_width() const = 0;
- virtual uint32_t get_height() const = 0;
+ virtual uint32_t get_width() const = 0;
+ virtual uint32_t get_height() const = 0;
virtual uint32_t get_renderer_id() const = 0;
- virtual void set_data(void* data, uint32_t size) = 0;
- virtual void bind(uint32_t slot = 0) const = 0;
- virtual void bind_as_image(uint32_t slot = 0, bool read_only = false) const = 0;
+ virtual void set_data(void* data, uint32_t size) = 0;
+ virtual void bind(uint32_t slot = 0) const = 0;
+ virtual void bind_as_image(uint32_t slot = 0,
+ bool read_only = false) const = 0;
- virtual bool operator==(const Texture& other) const = 0;
+ virtual bool operator==(const Texture& other) const = 0;
};
class Texture2D