// MonoGame - Copyright (C) The MonoGame Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. using System; using Microsoft.Xna.Framework.Content.Pipeline.Graphics; namespace Microsoft.Xna.Framework.Content.Pipeline { /// /// Provides methods for reading AutoDesk (.fbx) files for use in the Content Pipeline. /// [ContentImporter(".fbx", DisplayName = "Fbx Importer - MonoGame", DefaultProcessor = "ModelProcessor")] public class FbxImporter : ContentImporter { public override NodeContent Import(string filename, ContentImporterContext context) { if (filename == null) throw new ArgumentNullException("filename"); if (context == null) throw new ArgumentNullException("context"); var importer = new OpenAssetImporter("FbxImporter", true); return importer.Import(filename, context); } } }