Class OpenAssetImporter
[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
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
stringName of a game asset file.
context
ContentImporterContextContains 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
ToXna(Matrix4x4)
public static Matrix ToXna(Matrix4x4 matrix)
Parameters
matrix
Matrix4x4
Returns
ToXna(Quaternion)
public static Quaternion ToXna(Quaternion quaternion)
Parameters
quaternion
Quaternion
Returns
ToXna(Vector2D)
public static Vector2 ToXna(Vector2D vector)
Parameters
vector
Vector2D
Returns
ToXna(Vector3D)
public static Vector3 ToXna(Vector3D vector)
Parameters
vector
Vector3D
Returns
ToXnaColor(Color4D)
public static Color ToXnaColor(Color4D color)
Parameters
color
Color4D
Returns
ToXnaTexCoord(Vector3D)
public static Vector2 ToXnaTexCoord(Vector3D vector)
Parameters
vector
Vector3D