aboutsummaryrefslogtreecommitdiff
path: root/include/model_loader
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-02-15 01:36:41 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-18 15:22:10 +0100
commite4d073947d09634e95325ddaf8f1615f85e85901 (patch)
tree1bfa96dd7692f0d1c0029b3ba9a82e4ba719eb71 /include/model_loader
parentb366f3d0c573468ecd0b59da43dfcbc847334b19 (diff)
Load texture in obj model loader.. broken
Diffstat (limited to 'include/model_loader')
-rw-r--r--include/model_loader/ObjModelLoader.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/model_loader/ObjModelLoader.hpp b/include/model_loader/ObjModelLoader.hpp
index 3cdeb7d..5078244 100644
--- a/include/model_loader/ObjModelLoader.hpp
+++ b/include/model_loader/ObjModelLoader.hpp
@@ -1,11 +1,14 @@
#pragma once
#include "../Triangle.hpp"
+#include "../Vec.hpp"
#include <vector>
namespace amalgine {
+ class Image;
+
class ObjModelLoader {
public:
- static void load_from_file(const char *filepath, std::vector<Triangle3D> &triangles);
+ static void load_from_file(const char *filepath, std::vector<Triangle3D> &triangles, std::vector<vec2f> &texture_coords, Image **image);
};
} \ No newline at end of file