feat: accept filesystem path

This commit is contained in:
2025-10-01 10:41:24 +02:00
parent 58e25b530b
commit 807e0ce9d9

View File

@ -86,7 +86,7 @@ Object::Object() {
m_texCoords = std::vector<glm::vec2>(); m_texCoords = std::vector<glm::vec2>();
} }
void Object::LoadMaterials(const std::string& filename) { void Object::LoadMaterials(const std::filesystem::path& filename) {
std::ifstream file(filename); std::ifstream file(filename);
std::string currentMaterialName; std::string currentMaterialName;