/* \brief check if file is a Assimp supported file */ int _glhckFormatAssimp(const char *file) { int ret; CALL(0, "%s", file); ret = (aiIsExtensionSupported(getExt(file))?RETURN_OK:RETURN_FAIL); RET(0, "%d", ret); return ret; }
bool AssimpMeshLoader::canLoad(const std::string & ext) const { if (ext.empty()) return false; const auto extension = (ext[0] == '.') ? ext : '.' + ext; const auto supported = aiIsExtensionSupported(extension.c_str()); return supported == AI_TRUE; }