memory-related refactor

This commit is contained in:
MihailRis
2024-05-25 09:26:21 +03:00
parent d437b67580
commit 43903bb378
9 changed files with 41 additions and 36 deletions
+6 -6
View File
@@ -39,25 +39,25 @@ public:
~Assets();
Texture* getTexture(std::string name) const;
void store(Texture* texture, std::string name);
void store(std::unique_ptr<Texture> texture, std::string name);
Shader* getShader(std::string name) const;
void store(Shader* shader, std::string name);
void store(std::unique_ptr<Shader> shader, std::string name);
Font* getFont(std::string name) const;
void store(Font* font, std::string name);
void store(std::unique_ptr<Font> font, std::string name);
Atlas* getAtlas(std::string name) const;
void store(Atlas* atlas, std::string name);
void store(std::unique_ptr<Atlas> atlas, std::string name);
audio::Sound* getSound(std::string name) const;
void store(audio::Sound* sound, std::string name);
void store(std::unique_ptr<audio::Sound> sound, std::string name);
const std::vector<TextureAnimation>& getAnimations();
void store(const TextureAnimation& animation);
UiDocument* getLayout(std::string name) const;
void store(UiDocument* layout, std::string name);
void store(std::unique_ptr<UiDocument> layout, std::string name);
};
#endif // ASSETS_ASSETS_HPP_