summaryrefslogtreecommitdiff
path: root/gfx/models/obj_loader.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-30 20:36:42 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-04 19:29:49 +0000
commitbde4a9f40bb4af39270a124d5ef9571a83305d0a (patch)
tree536719df20d8f18d4c40e893c2f93b4fa45fb2d5 /gfx/models/obj_loader.h
parentAdd some tests over collection (diff)
downloadilt-bde4a9f40bb4af39270a124d5ef9571a83305d0a.tar.bz2
ilt-bde4a9f40bb4af39270a124d5ef9571a83305d0a.tar.xz
ilt-bde4a9f40bb4af39270a124d5ef9571a83305d0a.zip
Restructure to allow a resource path and testing
Diffstat (limited to 'gfx/models/obj_loader.h')
-rw-r--r--gfx/models/obj_loader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gfx/models/obj_loader.h b/gfx/models/obj_loader.h
index 0523a95..2fe3d35 100644
--- a/gfx/models/obj_loader.h
+++ b/gfx/models/obj_loader.h
@@ -1,6 +1,7 @@
#ifndef OBJ_LOADER_H_INCLUDED
#define OBJ_LOADER_H_INCLUDED
+#include <filesystem>
#include <glm/glm.hpp>
#include <string>
#include <vector>
@@ -36,7 +37,7 @@ public:
bool hasUVs;
bool hasNormals;
- explicit OBJModel(const std::string & fileName);
+ explicit OBJModel(const std::filesystem::path & fileName);
IndexedModel ToIndexedModel();