17 #ifndef __H__OBJ_PARSER__H__
18 #define __H__OBJ_PARSER__H__
20 #include "OBJState.hpp"
95 Result parseOBJFilefstream(std::string
const& path);
96 Result parseOBJFileMemMap(std::string
const& path);
98 Result parseMTLFilefstream(std::string
const& path);
99 Result parseMTLFileMemMap(std::string
const& path);
101 std::string buildRelativeMTLPath(std::string
const& objPath, std::string
const& mtlPath);
103 std::string extractLastLine(
const char* str);
104 std::string extractLastLine(std::ifstream& stream);
Failed to open and/or read OBJ file.
Failed to open and/or read MTL file.
Error encountered during OBJ parsing, see getLastError.
std::string const & getLastError() const
Definition: OBJParser.cpp:66
No errors encountered during parsing.
OBJState * getOBJState()
Definition: OBJParser.cpp:61
OBJState m_OBJState
Internal OBJ state.
Definition: OBJParser.hpp:108
Definition: OBJParser.hpp:46
Result parseOBJFile(std::string const &path)
Definition: OBJParser.cpp:46
Result
Definition: OBJParser.hpp:53
std::string m_LastError
String representation of last error.
Definition: OBJParser.hpp:110
Definition: OBJState.hpp:37
Error encountered during MTL parsing, see getLastError.