Implemented caching for OBJ model files

This commit is contained in:
Alexander Bock
2015-02-25 11:48:17 +01:00
parent 862c8ffd96
commit 5c72966346
3 changed files with 147 additions and 50 deletions
@@ -55,7 +55,11 @@ public:
std::vector<tinyobj::shape_t> shapes;
std::vector<tinyobj::material_t> materials;
protected:
void loadObj(const char *filename);
bool loadObj(const std::string& filename);
bool loadCachedFile(const std::string& filename);
bool saveCachedFile(const std::string& filename);
bool loadModel(const std::string& filename);
private:
void createSphere();