Creating the functionality to list all Importer descriptions and the number of importers available.

This commit is contained in:
Jaime Machado Neto
2015-05-26 08:40:43 -03:00
parent 4d05dd913c
commit de6f0f2a7d
3 changed files with 30 additions and 1 deletions

View File

@@ -423,6 +423,21 @@ const char* aiGetErrorString()
return gLastErrorString.c_str();
}
// -----------------------------------------------------------------------------------------------
// Return the description of a importer given its index
const aiImporterDesc* aiGetImportFormatDescription( size_t pIndex)
{
return Importer().GetImporterInfo(pIndex);
}
// -----------------------------------------------------------------------------------------------
// Return the number of importers
size_t aiGetImportFormatCount(void)
{
return Importer().GetImporterCount();
}
// ------------------------------------------------------------------------------------------------
// Returns the error text of the last failed import process.
aiBool aiIsExtensionSupported(const char* szExtension)