Loading logic moved to Asset classes

This commit is contained in:
Dynamitos committed 2020-06-08 01:44:47 +02:00
1 parent 356e6058fe
commit ab4a3b5e23
50 files changed
+966 -558

No files matched your search

+5 -5
View File
@@ -27,13 +27,13 @@ private:
static AssetRegistry& get();
AssetRegistry();
void init(const std::string& rootFolder, Gfx::PGraphics graphics);
void init(const std::filesystem::path& rootFolder, Gfx::PGraphics graphics);
void registerMesh(const std::string& filePath);
void registerTexture(const std::string& filePath);
void registerMaterial(const std::string& filePath);
void registerMesh(const std::filesystem::path& filePath);
void registerTexture(const std::filesystem::path& filePath);
void registerMaterial(const std::filesystem::path& filePath);
std::string rootFolder;
std::filesystem::path rootFolder;
Map<std::string, PTextureAsset> textures;
Map<std::string, PMeshAsset> meshes;
Map<std::string, PMaterialAsset> materials;