MCPcopy Create free account
hub / github.com/SaschaWillems/HowToVulkan / MaterialFileReader

Class MaterialFileReader

source/external/tinyobj/tiny_obj_loader.h:476–489  ·  view source on GitHub ↗

Read .mtl from a file.

Source from the content-addressed store, hash-verified

474/// Read .mtl from a file.
475///
476class MaterialFileReader : public MaterialReader {
477 public:
478 // Path could contain separator(';' in Windows, ':' in Posix)
479 explicit MaterialFileReader(const std::string &mtl_basedir)
480 : m_mtlBaseDir(mtl_basedir) {}
481 virtual ~MaterialFileReader() TINYOBJ_OVERRIDE {}
482 virtual bool operator()(const std::string &matId,
483 std::vector<material_t> *materials,
484 std::map<std::string, int> *matMap, std::string *warn,
485 std::string *err) TINYOBJ_OVERRIDE;
486
487 private:
488 std::string m_mtlBaseDir;
489};
490
491///
492/// Read .mtl from a stream.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected