18 lines
288 B
C++
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;
|
|
};
|