Table of Contents

Class XImporter

Namespace
Microsoft.Xna.Framework.Content.Pipeline
Assembly
MonoGame.Framework.Content.Pipeline.dll

Provides methods for reading DirectX Object (.x) files for use in the Content Pipeline.

[ContentImporter(".x", DisplayName = "X Importer - MonoGame", DefaultProcessor = "ModelProcessor")]
public class XImporter : ContentImporter<NodeContent>, IContentImporter
Inheritance
XImporter
Implements
Inherited Members

Constructors

XImporter()

Initializes a new instance of XImporter.

public XImporter()

Methods

Import(string, ContentImporterContext)

Called by the XNA Framework when importing a .x file to be used as a game asset. This is the method called by the XNA Framework when an asset is to be imported into an object that can be recognized by the Content Pipeline.

public override NodeContent Import(string filename, ContentImporterContext context)

Parameters

filename string

Name of a game asset file.

context ContentImporterContext

Contains information for importing a game asset, such as a logger interface.

Returns

NodeContent

Resulting game asset.