Table of Contents

Class OpenAssetImporter

Namespace
Microsoft.Xna.Framework.Content.Pipeline
Assembly
MonoGame.Framework.Content.Pipeline.dll
[ContentImporter(new string[] { ".dae", ".gltf", "glb", ".blend", ".3ds", ".ase", ".obj", ".ifc", ".xgl", ".zgl", ".ply", ".dxf", ".lwo", ".lws", ".lxo", ".stl", ".ac", ".ms3d", ".cob", ".scn", ".bvh", ".csm", ".irrmesh", ".irr", ".mdl", ".md2", ".md3", ".pk3", ".mdc", ".md5", ".smd", ".vta", ".ogex", ".3d", ".b3d", ".q3d", ".q3s", ".nff", ".off", ".ter", ".hmp", ".ndo" }, DisplayName = "Open Asset Import Library - MonoGame", DefaultProcessor = "ModelProcessor")]
public class OpenAssetImporter : ContentImporter<NodeContent>, IContentImporter
Inheritance
OpenAssetImporter
Implements
Inherited Members

Constructors

OpenAssetImporter()

Default constructor.

public OpenAssetImporter()

Properties

XnaComptatible

This disables some Assimp model loading features so that the resulting content is the same as what the XNA FbxImporter

public bool XnaComptatible { get; set; }

Property Value

bool

Methods

Import(string, ContentImporterContext)

Called by the framework when importing a game asset. This is the method called by XNA 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.

ToXna(Color4D)

public static Vector3 ToXna(Color4D color)

Parameters

color Color4D

Returns

Vector3

ToXna(Matrix4x4)

public static Matrix ToXna(Matrix4x4 matrix)

Parameters

matrix Matrix4x4

Returns

Matrix

ToXna(Quaternion)

public static Quaternion ToXna(Quaternion quaternion)

Parameters

quaternion Quaternion

Returns

Quaternion

ToXna(Vector2D)

public static Vector2 ToXna(Vector2D vector)

Parameters

vector Vector2D

Returns

Vector2

ToXna(Vector3D)

public static Vector3 ToXna(Vector3D vector)

Parameters

vector Vector3D

Returns

Vector3

ToXnaColor(Color4D)

public static Color ToXnaColor(Color4D color)

Parameters

color Color4D

Returns

Color

ToXnaTexCoord(Vector3D)

public static Vector2 ToXnaTexCoord(Vector3D vector)

Parameters

vector Vector3D

Returns

Vector2