2015-04-16 16:55:32 +00:00
|
|
|
#ifndef LOAD_MESH_FROM_OBJ_H
|
|
|
|
#define LOAD_MESH_FROM_OBJ_H
|
|
|
|
|
|
|
|
struct GLInstanceGraphicsShape;
|
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
#include "../../ThirdPartyLibs/Wavefront/tiny_obj_loader.h"
|
2017-05-18 02:29:12 +00:00
|
|
|
|
2017-10-05 18:43:14 +00:00
|
|
|
int b3IsFileCachingEnabled();
|
2017-05-18 02:29:12 +00:00
|
|
|
void b3EnableFileCaching(int enable);
|
|
|
|
|
|
|
|
std::string LoadFromCachedOrFromObj(
|
2019-08-13 23:53:51 +00:00
|
|
|
tinyobj::attrib_t& attribute,
|
2018-09-23 21:17:31 +00:00
|
|
|
std::vector<tinyobj::shape_t>& shapes, // [output]
|
|
|
|
const char* filename,
|
2018-10-09 04:27:08 +00:00
|
|
|
const char* mtl_basepath,
|
|
|
|
struct CommonFileIOInterface* fileIO);
|
2015-04-16 16:55:32 +00:00
|
|
|
|
2018-10-09 04:27:08 +00:00
|
|
|
GLInstanceGraphicsShape* LoadMeshFromObj(const char* relativeFileName, const char* materialPrefixPath,struct CommonFileIOInterface* fileIO);
|
2015-04-16 16:55:32 +00:00
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
#endif //LOAD_MESH_FROM_OBJ_H
|