mpri-graphics-project/util/ObjParser.hpp

18 lines
288 B
C++

/** Parses .obj mesh files, outputting a `Mesh` */
#pragma once
#include <fstream>
#include <string>
#include <stdexcept>
#include "../Mesh.hpp"
class ObjParser {
public:
ObjParser(const std::string& path);
Mesh parse();
private:
std::string path;
};