MCPcopy Create free account
hub / github.com/assimp/assimp / aiGetImporterDesc

Function aiGetImporterDesc

code/Common/Assimp.cpp:672–689  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

670
671// ------------------------------------------------------------------------------------------------
672ASSIMP_API C_STRUCT const aiImporterDesc *aiGetImporterDesc(const char *extension) {
673 if (nullptr == extension) {
674 return nullptr;
675 }
676 const aiImporterDesc *desc(nullptr);
677 std::vector<BaseImporter *> out;
678 GetImporterInstanceList(out);
679 for (size_t i = 0; i < out.size(); ++i) {
680 if (0 == strncmp(out[i]->GetInfo()->mFileExtensions, extension, strlen(extension))) {
681 desc = out[i]->GetInfo();
682 break;
683 }
684 }
685
686 DeleteImporterInstanceList(out);
687
688 return desc;
689}
690
691// ------------------------------------------------------------------------------------------------
692ASSIMP_API int aiVector2AreEqual(

Callers 1

TEST_FFunction · 0.85

Calls 4

GetImporterInstanceListFunction · 0.85
sizeMethod · 0.45
GetInfoMethod · 0.45

Tested by 1

TEST_FFunction · 0.68