objParser.h 384 B

1234567891011121314151617181920
  1. #ifndef OBJPARSER_H
  2. #define OBJPARSER_H
  3. #include <fstream>
  4. #include <sstream>
  5. #include "mesh.h"
  6. namespace OBJ{
  7. Mesh& buildMeshFromFile(Mesh &mesh, std::string &path);
  8. bool fileExists(std::string &path);
  9. //Get vertices and Normal data
  10. void loadFileData(Mesh &mesh, std::ifstream &file);
  11. std::vector<std::string> split(std::string &str, char delim);
  12. }
  13. #endif