aboutsummaryrefslogtreecommitdiff
path: root/src/Rendering/TextureManager.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-20 02:27:02 +0200
committerhachem <im@hachem.wtf>2026-08-20 02:40:07 +0200
commit5b361d81dbd2af0d0e99b9eb1adebea76ff05db0 (patch)
tree34db1df17e8c7248aeeb92156d635d31c2484e3f /src/Rendering/TextureManager.cpp
parente3abaaf59777258ba06705135a0cafcb5918ad12 (diff)
[chore]: MASSIVE refactor + more vulkan bs
Diffstat (limited to 'src/Rendering/TextureManager.cpp')
-rw-r--r--src/Rendering/TextureManager.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/Rendering/TextureManager.cpp b/src/Rendering/TextureManager.cpp
deleted file mode 100644
index 9110558..0000000
--- a/src/Rendering/TextureManager.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-#include "TextureManager.h"
-#include "Platform/OpenGL/OpenGLTexture.h"
-#include "Platform/OpenGL/OpenGLRendererAPI.h"
-#include <glad/glad.h>
-
-namespace Donut
-{
- Ref<Texture2D> TextureManager::CreateTexture(uint32_t width, uint32_t height)
- {
- return CreateRef<OpenGLTexture2D>(width, height);
- }
-
- void TextureManager::BindTexture(uint32_t textureID, uint32_t slot)
- {
- RenderCommand::BindTexture(textureID, slot);
- }
-
- void TextureManager::BindImageTexture(uint32_t textureID, uint32_t slot, bool readOnly)
- {
- RenderCommand::BindImageTexture(textureID, slot, readOnly);
- }
-
- void TextureManager::SetTextureData(uint32_t textureID, void* data, uint32_t width, uint32_t height)
- {
- glBindTexture(GL_TEXTURE_2D, textureID);
- glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, data);
- }
-
- void TextureManager::ResizeTexture(uint32_t textureID, uint32_t width, uint32_t height)
- {
- glBindTexture(GL_TEXTURE_2D, textureID);
- glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr);
- }
-};