mpri-graphics-project/util/ObjParser.hpp

17 lines
274 B
C++
Raw Normal View History

2018-01-28 23:03:57 +01:00
/** Parses .obj mesh files, outputting a `Mesh` */
#include <fstream>
#include <string>
#include <stdexcept>
#include "../Mesh.hpp"
class ObjParser {
public:
ObjParser(const std::string& path);
Mesh parse();
private:
std::string path;
};