aboutsummaryrefslogtreecommitdiff
path: root/include/model_loader
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-02-14 17:09:48 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-18 15:22:10 +0100
commitb366f3d0c573468ecd0b59da43dfcbc847334b19 (patch)
tree543a781260fc23197e301c6e2e42107a0a914027 /include/model_loader
parent83c78e2b5cc9b0cb737ec3785722ae280bd29b65 (diff)
Add obj parser
Diffstat (limited to 'include/model_loader')
-rw-r--r--include/model_loader/ObjModelLoader.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/model_loader/ObjModelLoader.hpp b/include/model_loader/ObjModelLoader.hpp
new file mode 100644
index 0000000..3cdeb7d
--- /dev/null
+++ b/include/model_loader/ObjModelLoader.hpp
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "../Triangle.hpp"
+#include <vector>
+
+namespace amalgine {
+ class ObjModelLoader {
+ public:
+ static void load_from_file(const char *filepath, std::vector<Triangle3D> &triangles);
+ };
+} \ No newline at end of file