diff options
| author | hachem <im@hachem.wtf> | 2025-08-15 03:18:29 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-15 03:18:29 +0200 |
| commit | 4172869e54093eee6e1595ebe0fa55c9fe98aef7 (patch) | |
| tree | 2004c518688e6db529e437fe3f0120ad0fcc1dd9 /src/Rendering/TextureManager.h | |
| parent | bc2d88c799cb3913a5defe4ea9ddea9c56814349 (diff) | |
[help]: Complete first geodesic 3d raytracing
Diffstat (limited to 'src/Rendering/TextureManager.h')
| -rw-r--r-- | src/Rendering/TextureManager.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Rendering/TextureManager.h b/src/Rendering/TextureManager.h new file mode 100644 index 0000000..0ab6c5f --- /dev/null +++ b/src/Rendering/TextureManager.h @@ -0,0 +1,19 @@ +#pragma once + +#include "Core/Memory.h" +#include "Rendering/Texture.h" +#include <cstdint> + +namespace Donut +{ + class TextureManager + { + public: + static Ref<Texture2D> CreateTexture(uint32_t width, uint32_t height); + + static void BindTexture(uint32_t textureID, uint32_t slot = 0); + static void BindImageTexture(uint32_t textureID, uint32_t slot = 0, bool readOnly = false); + static void SetTextureData(uint32_t textureID, void* data, uint32_t width, uint32_t height); + static void ResizeTexture(uint32_t textureID, uint32_t width, uint32_t height); + }; +}; |
