2015-04-08 14:50:03 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace ANX.Framework.Content.Pipeline
|
|
|
|
|
{
|
|
|
|
|
class AssimpImporterAttribute : ContentImporterAttribute
|
|
|
|
|
{
|
|
|
|
|
public AssimpImporterAttribute()
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
2015-04-26 19:47:26 +02:00
|
|
|
|
AssimpDeploy.DeployLibraries();
|
2015-04-08 14:50:03 +02:00
|
|
|
|
|
|
|
|
|
Assimp.AssimpContext context = new Assimp.AssimpContext();
|
|
|
|
|
|
|
|
|
|
this.FileExtensions = context.GetSupportedImportFormats();
|
|
|
|
|
}
|
|
|
|
|
catch (Exception exc)
|
|
|
|
|
{
|
|
|
|
|
Trace.TraceError(exc.Message + Environment.NewLine + exc.StackTrace);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|