-----------------------------------------------------------------------------------
| 57 | |
| 58 | // ----------------------------------------------------------------------------------- |
| 59 | size_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 | // ----------------------------------------------------------------------------------- |
| 70 | int Assimp_Export(const char *const *params, unsigned int num) { |
no test coverage detected