Project structure update

This commit is contained in:
MihailRis
2023-11-05 22:30:52 +03:00
parent d67c707916
commit 7730da0056
19 changed files with 58 additions and 62 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef ASSETS_ASSETS_H_
#define ASSETS_ASSETS_H_
#include <string>
#include <unordered_map>
class Texture;
class Shader;
class Font;
class Assets {
std::unordered_map<std::string, Texture*> textures;
std::unordered_map<std::string, Shader*> shaders;
std::unordered_map<std::string, Font*> fonts;
public:
~Assets();
Texture* getTexture(std::string name) const;
void store(Texture* texture, std::string name);
Shader* getShader(std::string name) const;
void store(Shader* shader, std::string name);
Font* getFont(std::string name) const;
void store(Font* font, std::string name);
};
#endif /* ASSETS_ASSETS_H_ */