#include "LoadMeshFromObj.h" #include"Wavefront/tiny_obj_loader.h" #include "../OpenGLWindow/GLInstanceGraphicsShape.h" #include //fopen #include "Bullet3Common/b3AlignedObjectArray.h" #include #include #include "Wavefront2GLInstanceGraphicsShape.h" GLInstanceGraphicsShape* LoadMeshFromObj(const char* relativeFileName, const char* materialPrefixPath) { std::vector shapes; std::string err = tinyobj::LoadObj(shapes, relativeFileName, materialPrefixPath); GLInstanceGraphicsShape* gfxShape = btgCreateGraphicsShapeFromWavefrontObj(shapes); return gfxShape; }