SpiecsEngine
 
Loading...
Searching...
No Matches

◆ LoadFromFBX()

bool Spices::MeshLoader::LoadFromFBX ( const std::string & fileName,
MeshPack * outMeshPack )
staticprivate

Load data from a .fbx file.

Parameters
[in]fileNameMesh file path in disk.
[in,out]outMeshPackmesh pack pointer, only pass this to it.
Returns
Returns true if load data successfully.

Definition at line 188 of file MeshLoader.cpp.

189 {
191
192 bool isFind = false;
193 std::string filePath;
194 for (auto& it : ResourceSystem::GetSearchFolder())
195 {
196 filePath = it + defaultFBXMeshPath + fileName + ".fbx";
197 if (FileLibrary::FileLibrary_Exists(filePath.c_str()))
198 {
199 isFind = true;
200 break;
201 }
202 }
203 if (!isFind) return false;
204
205 // TODO:
206 return false;
207 }
#define SPICES_PROFILE_ZONE
static bool FileLibrary_Exists(const char *path)
Determine whether the given string is existing a file.
const std::string defaultFBXMeshPath
Const variable: FBX Mesh File Path.

Referenced by Load().