Audio module, simple text rendering

This commit is contained in:
MihailRis 2022-03-20 23:48:21 +03:00 • committed by GitHub
parent e96fd909ea
commit 1770acbfef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 702 additions and 17 deletions

View file

@ -6,10 +6,12 @@
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);
@ -17,6 +19,9 @@ public:
Shader* getShader(std::string name);
void store(Shader* shader, std::string name);
Font* getFont(std::string name);
void store(Font* font, std::string name);
};
#endif /* SRC_ASSETS_H_ */