mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-18 03:59:20 +01:00
Add Imgui, Add TextureManager
From 1.1k texture loads to 5
This commit is contained in:
@@ -1,7 +1,20 @@
|
||||
#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{};
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user