diff options
-rw-r--r-- | experimental/tinyobj_loader_opt.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/experimental/tinyobj_loader_opt.h b/experimental/tinyobj_loader_opt.h index bdb343c..ed44b47 100644 --- a/experimental/tinyobj_loader_opt.h +++ b/experimental/tinyobj_loader_opt.h @@ -1046,8 +1046,14 @@ bool parseObj(attrib_t *attrib, std::vector<shape_t> *shapes, std::vector<material_t> *materials, const char *buf, size_t len, const LoadOption &option); +} // namespace tinyobj_opt + +#endif // TINOBJ_LOADER_OPT_H_ + #ifdef TINYOBJ_LOADER_OPT_IMPLEMENTATION +namespace tinyobj_opt { + static bool parseLine(Command *command, const char *p, size_t p_len, bool triangulate = true) { // @todo { operate directly on pointer `p'. to do that, add range check for @@ -1672,8 +1678,7 @@ bool parseObj(attrib_t *attrib, std::vector<shape_t> *shapes, return true; } -#endif // TINYOBJ_LOADER_OPT_IMPLEMENTATION } // namespace tinyobj_opt -#endif // TINOBJ_LOADER_OPT_H_ +#endif // TINYOBJ_LOADER_OPT_IMPLEMENTATION |