|
Tachyon (current)
Current Main Branch
|
Wavefront .obj reader class(v2 API) More...
#include <tiny_obj_loader.h>
Public Member Functions | |
| ObjReader () | |
| bool | ParseFromFile (const std::string &filename, const ObjReaderConfig &config=ObjReaderConfig()) |
| Load .obj and .mtl from a file. More... | |
| bool | ParseFromString (const std::string &obj_text, const std::string &mtl_text, const ObjReaderConfig &config=ObjReaderConfig()) |
| Parse .obj from a text string. More... | |
| bool | Valid () const |
| .obj was loaded or parsed correctly. More... | |
| const attrib_t & | GetAttrib () const |
| const std::vector< shape_t > & | GetShapes () const |
| const std::vector< material_t > & | GetMaterials () const |
| const std::string & | Warning () const |
Warning message(may be filled after Load or Parse) More... | |
| const std::string & | Error () const |
Error message(filled when Load or Parse failed) More... | |
Wavefront .obj reader class(v2 API)
Definition at line 531 of file tiny_obj_loader.h.
|
inline |
Definition at line 533 of file tiny_obj_loader.h.
|
inline |
Error message(filled when Load or Parse failed)
Definition at line 575 of file tiny_obj_loader.h.
Referenced by main().
|
inline |
Definition at line 561 of file tiny_obj_loader.h.
Referenced by main().
|
inline |
Definition at line 565 of file tiny_obj_loader.h.
Referenced by main().
|
inline |
Definition at line 563 of file tiny_obj_loader.h.
Referenced by main().
| bool tinyobj::ObjReader::ParseFromFile | ( | const std::string & | filename, |
| const ObjReaderConfig & | config = ObjReaderConfig() |
||
| ) |
Load .obj and .mtl from a file.
| [in] | filename | wavefront .obj filename |
| [in] | config | Reader configuration |
Referenced by main().
| bool tinyobj::ObjReader::ParseFromString | ( | const std::string & | obj_text, |
| const std::string & | mtl_text, | ||
| const ObjReaderConfig & | config = ObjReaderConfig() |
||
| ) |
Parse .obj from a text string.
Need to supply .mtl text string by mtl_text. This function ignores mtllib line in .obj text.
| [in] | obj_text | wavefront .obj filename |
| [in] | mtl_text | wavefront .mtl filename |
| [in] | config | Reader configuration |
|
inline |
.obj was loaded or parsed correctly.
Definition at line 559 of file tiny_obj_loader.h.
|
inline |
Warning message(may be filled after Load or Parse)
Definition at line 570 of file tiny_obj_loader.h.
Referenced by main().
1.8.14