mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 12:21:48 +01:00
21 lines
303 B
C++
21 lines
303 B
C++
#pragma once
|
|
#include <map>
|
|
|
|
#include "Texture.h"
|
|
|
|
class TextureManager
|
|
{
|
|
public:
|
|
TextureManager() = default;
|
|
|
|
static TextureManager* GetInstance();
|
|
|
|
Texture* GetTexture(const std::string& name);
|
|
|
|
static TextureManager* m_pInstance;
|
|
private:
|
|
std::map<std::string, Texture*> m_Textures{};
|
|
|
|
};
|
|
|