diff options
author | Stijn Buys <ingar@telenet.be> | 2020-07-16 17:02:49 +0200 |
---|---|---|
committer | Stijn Buys <ingar@telenet.be> | 2020-07-16 17:02:49 +0200 |
commit | 6521936cdaa2132ee6860dfda335d0afbe958484 (patch) | |
tree | 67c496c44c83c7c7f1ee42ee240498a760904307 /src/model/objfile.h | |
parent | 01f4578c8ee667f0357f6967f89f8e03462041cd (diff) |
Read collision meshes from OBJ files. Do not read meshes if the material has the Ignore flag set.
Diffstat (limited to 'src/model/objfile.h')
-rw-r--r-- | src/model/objfile.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/model/objfile.h b/src/model/objfile.h index 7db90bc..b8286dc 100644 --- a/src/model/objfile.h +++ b/src/model/objfile.h @@ -32,7 +32,7 @@ class OBJFile public: /** * @brief load a .obj file into a Model - * @param name name of the model to be loaded, without .obj extension or models/ prefix + * @param name name of the model to be loaded, without .obj extension. * If the file can not be read, load() returns the NULL-pointer */ static Model *load(std::string const &name); @@ -66,7 +66,7 @@ private: bool read(); /** - * @brief parse a line in the .obj file. + * @brief parse a line in the .obj file */ void readline(std::string const &line); @@ -112,6 +112,9 @@ private: FragmentGroup *obj_fragmentgroup; size_t obj_normalcount; + + bool obj_load_clip; + CollisionModel *obj_collisionmodel; }; } // namespace model |