diff options
| author | hachem <im@hachem.wtf> | 2026-08-20 02:27:02 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-20 02:40:07 +0200 |
| commit | 5b361d81dbd2af0d0e99b9eb1adebea76ff05db0 (patch) | |
| tree | 34db1df17e8c7248aeeb92156d635d31c2484e3f /src/Core/HDRIManager.h | |
| parent | e3abaaf59777258ba06705135a0cafcb5918ad12 (diff) | |
[chore]: MASSIVE refactor + more vulkan bs
Diffstat (limited to 'src/Core/HDRIManager.h')
| -rw-r--r-- | src/Core/HDRIManager.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/Core/HDRIManager.h b/src/Core/HDRIManager.h deleted file mode 100644 index 3c1ff57..0000000 --- a/src/Core/HDRIManager.h +++ /dev/null @@ -1,47 +0,0 @@ -#pragma once - -#include "Core/Log.h" -#include "Rendering/Texture.h" - -#include <string> -#include <unordered_map> -#include <memory> - -namespace Donut -{ - class HDRIManager - { - public: - static HDRIManager& Get() - { - static HDRIManager instance; - return instance; - } - - Ref<CubemapTexture> LoadHDRI(const std::string& path); - Ref<CubemapTexture> GetCurrentHDRI() const { return m_CurrentHDRI; } - - void SetCurrentHDRI(const std::string& path); - const std::vector<std::string>& GetAvailableHDRI() const { return m_AvailableHDRI; } - std::string GetHDRIName(const std::string& path) const; - void ClearCache(); - private: - HDRIManager() = default; - ~HDRIManager() = default; - - HDRIManager(const HDRIManager&) = delete; - HDRIManager& operator=(const HDRIManager&) = delete; - - std::unordered_map<std::string, Ref<CubemapTexture>> m_HDRICache; - - Ref<CubemapTexture> m_CurrentHDRI; - - std::vector<std::string> m_AvailableHDRI = - { - "Assets/HDRI/HDR_blue_nebulae-1.hdr", - "Assets/HDRI/HDR_subdued_blue_nebulae.hdr", - "Assets/HDRI/HDR_subdued_multi_nebulae.hdr", - "Assets/HDRI/night_sky.hdr" - }; - }; -}; |
