forked from Dynamitos/Seele
Loading logic moved to Asset classes
This commit is contained in:
1 parent
356e6058fe
commit
ab4a3b5e23
50 files changed
+966
-558
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user