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

Function GetMatchingFormat

tools/assimp_cmd/Export.cpp:59–67  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

57
58// -----------------------------------------------------------------------------------
59size_t GetMatchingFormat(const std::string &outf, bool byext = false) {
60 for (size_t i = 0, end = globalExporter->GetExportFormatCount(); i < end; ++i) {
61 const aiExportFormatDesc *const e = globalExporter->GetExportFormatDescription(i);
62 if (outf == (byext ? e->fileExtension : e->id)) {
63 return i;
64 }
65 }
66 return SIZE_MAX;
67}
68
69// -----------------------------------------------------------------------------------
70int Assimp_Export(const char *const *params, unsigned int num) {

Callers 1

Assimp_ExportFunction · 0.85

Calls 2

GetExportFormatCountMethod · 0.80

Tested by

no test coverage detected