hachem.wtf
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
commit0d8b874c0048ca088bb9e353a5f7c62e1f8cd0e8 (patch)
tree2c0f3b13161489e4e91994882f8f2ed67a20bc0e /src/rendering/texture.h
parent9671d5e54484b8bce261207d08ff15053ae24e48 (diff)
feat: 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 e9f369f..cc5c59e 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);
};
};