Files
Nuake-custom/Nuake/src/Core/TextureManager.h
2021-05-24 19:23:34 -04:00

22 lines
414 B
C++

#pragma once
#include <map>
#include <string>
#include "../Core/Core.h"
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);
};