From 5b361d81dbd2af0d0e99b9eb1adebea76ff05db0 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 20 Aug 2026 02:27:02 +0200 Subject: [chore]: MASSIVE refactor + more vulkan bs --- src/Rendering/TextureManager.cpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/Rendering/TextureManager.cpp (limited to 'src/Rendering/TextureManager.cpp') 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 - -namespace Donut -{ - Ref TextureManager::CreateTexture(uint32_t width, uint32_t height) - { - return CreateRef(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); - } -}; -- cgit v1.3