mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2026-02-04 12:29:21 +01:00
Started on GuiIcon, General fixes
This commit is contained in:
@@ -3,18 +3,21 @@
|
||||
|
||||
#include "Texture.h"
|
||||
|
||||
class TextureManager
|
||||
{
|
||||
class TextureManager {
|
||||
public:
|
||||
static TextureManager * GetInstance();
|
||||
static void DestroyInstance();
|
||||
Texture* GetTexture(const std::string& name);
|
||||
|
||||
TextureManager(const TextureManager& other) = delete;
|
||||
TextureManager& operator=(const TextureManager& other) = delete;
|
||||
TextureManager(TextureManager&& other) = delete;
|
||||
TextureManager& operator=(TextureManager&& other) = delete;
|
||||
private:
|
||||
TextureManager() = default;
|
||||
~TextureManager();
|
||||
|
||||
static TextureManager* m_pInstance;
|
||||
|
||||
std::map<std::string, Texture *> m_Textures {};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user