+ add aiImporterDesc API to hold importer meta information.

- cleanup some Importer APIs: FindLoader -> GetImporter, add some utility APIs. Note that this is a breaking API change.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1232 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2012-04-18 23:07:52 +00:00
parent 5975f3eff2
commit e479355d0a
9 changed files with 1665 additions and 1486 deletions

View File

@@ -71,12 +71,12 @@ using namespace Assimp;
using namespace Assimp::Blender;
using namespace Assimp::Formatter;
static const aiLoaderDesc blenderDesc = {
static const aiImporterDesc blenderDesc = {
"Blender 3D Importer \nhttp://www.blender3d.org",
"Assimp Team",
"",
"",
aiLoaderFlags_SupportBinaryFlavour | aiLoaderFlags_Experimental,
"",
aiImporterFlags_SupportBinaryFlavour | aiImporterFlags_Experimental,
0,
0,
2,
@@ -123,9 +123,9 @@ void BlenderImporter::GetExtensionList(std::set<std::string>& app)
// ------------------------------------------------------------------------------------------------
// Loader registry entry
const aiLoaderDesc& BlenderImporter::GetInfo () const
const aiImporterDesc* BlenderImporter::GetInfo () const
{
return blenderDesc;
return &blenderDesc;
}
// ------------------------------------------------------------------------------------------------