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

Class MaterialStreamReader

source/external/tinyobj/tiny_obj_loader.h:494–506  ·  view source on GitHub ↗

Read .mtl from a stream.

Source from the content-addressed store, hash-verified

492/// Read .mtl from a stream.
493///
494class MaterialStreamReader : public MaterialReader {
495 public:
496 explicit MaterialStreamReader(std::istream &inStream)
497 : m_inStream(inStream) {}
498 virtual ~MaterialStreamReader() TINYOBJ_OVERRIDE {}
499 virtual bool operator()(const std::string &matId,
500 std::vector<material_t> *materials,
501 std::map<std::string, int> *matMap, std::string *warn,
502 std::string *err) TINYOBJ_OVERRIDE;
503
504 private:
505 std::istream &m_inStream;
506};
507
508// v2 API
509struct ObjReaderConfig {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected