mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
Audio module, simple text rendering
This commit is contained in:
parent
e96fd909ea
commit
1770acbfef
15 changed files with 702 additions and 17 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue