From 6dc269ce136e745ad2bacc325eea911b46c65c47 Mon Sep 17 00:00:00 2001 From: LandaMm Date: Wed, 1 Oct 2025 10:40:50 +0200 Subject: [PATCH] feat: accept filepath --- include/model.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/model.h b/include/model.h index 0148b88..aeab2dc 100644 --- a/include/model.h +++ b/include/model.h @@ -2,6 +2,7 @@ #define MODEL_H_ #include #include +#include #include #include #include @@ -120,7 +121,7 @@ public: static Object LoadFile(const std::string& filename); private: - void LoadMaterials(const std::string& filename); + void LoadMaterials(const std::filesystem::path& filename); private: void AddMaterial(std::string name, std::shared_ptr material); std::shared_ptr GetMaterial(std::string name);