Assets loading refactor

This commit is contained in:
MihailRis
2023-12-02 16:41:21 +03:00
parent 2ebaad6cb6
commit 8c261efbd4
3 changed files with 110 additions and 62 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef ASSETS_ASSET_LOADERS_H_
#define ASSETS_ASSET_LOADERS_H_
#include <string>
#include <filesystem>
class Assets;
namespace assetload {
bool texture(Assets* assets,
const std::filesystem::path& filename,
const std::string& name);
bool shader(Assets* assets,
const std::filesystem::path& filename,
const std::string& name);
bool atlas(Assets* assets,
const std::filesystem::path& directory,
const std::string& name);
bool font(Assets* assets,
const std::filesystem::path& filename,
const std::string& name);
}
#endif // ASSETS_ASSET_LOADERS_H_