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 | a6655eebe2a69ee427264bd43df5747851ed96df (patch) | |
| tree | fa8c6ef862898a3d8e19250698dca0d9aaf4f9c2 /src/rendering/texture_manager.h | |
| parent | 3d8d3259e1cf5a7d88e5d1e530cc8c9bf9140734 (diff) | |
feat: complete first geodesic 3D raytracing
Diffstat (limited to 'src/rendering/texture_manager.h')
| -rw-r--r-- | src/rendering/texture_manager.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/rendering/texture_manager.h b/src/rendering/texture_manager.h new file mode 100644 index 0000000..902a27d --- /dev/null +++ b/src/rendering/texture_manager.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> create_texture(uint32_t width, uint32_t height); + + static void bind_texture(uint32_t texture_id, uint32_t slot = 0); + static void bind_image_texture(uint32_t texture_id, uint32_t slot = 0, bool read_only = false); + static void set_texture_data(uint32_t texture_id, void* data, uint32_t width, uint32_t height); + static void resize_texture(uint32_t texture_id, uint32_t width, uint32_t height); + }; +}; |
