Files
Nuake-custom/Nuake/src/Rendering/Textures/TextureManager.h
2021-07-12 20:17:16 -04:00

25 lines
416 B
C++

#pragma once
#include "src/Core/Core.h"
namespace Nuake
{
class Texture;
// Todo: SHOULD probably be static too.
class TextureManager
{
private:
static TextureManager* s_Instance;
static std::map<std::string, Ref<Texture>> m_Registry;
bool IsTextureLoaded(const std::string path);
public:
static TextureManager* Get();
TextureManager();
Ref<Texture> GetTexture(const std::string path);
};
}