aboutsummaryrefslogtreecommitdiff
path: root/src/Rendering/Texture.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-14 00:42:05 +0200
committerhachem <im@hachem.wtf>2025-08-14 00:42:05 +0200
commite050dce79b67ae6386240567a994454711ab998d (patch)
tree4b5f55471d86b8ee80d531696e65dcea3b713e7a /src/Rendering/Texture.h
parent2e246683df3b18e8e129adb0ada25be5f82f5b59 (diff)
[add]: Custom memory managers and fix includes
Diffstat (limited to 'src/Rendering/Texture.h')
-rw-r--r--src/Rendering/Texture.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Rendering/Texture.h b/src/Rendering/Texture.h
index 4d150c0..21941ee 100644
--- a/src/Rendering/Texture.h
+++ b/src/Rendering/Texture.h
@@ -1,6 +1,7 @@
#pragma once
-#include <memory>
+#include "Core/Memory.h"
+
#include <string>
#include <glm/glm.hpp>
@@ -27,7 +28,7 @@ namespace Donut
: public Texture
{
public:
- static std::shared_ptr<Texture2D> Create(uint32_t width, uint32_t height);
- static std::shared_ptr<Texture2D> Create(const std::string& path);
+ static Ref<Texture2D> Create(uint32_t width, uint32_t height);
+ static Ref<Texture2D> Create(const std::string& path);
};
}; \ No newline at end of file