Class ModelRuntime
Base class to load 3D formats at runtime.
Namespace: Evergine.Framework.Runtimes
Assembly: Evergine.Framework.dll
Syntax
public abstract class ModelRuntime
Properties
Extentsion
Gets the 3D format extension.
Declaration
public abstract string Extentsion { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Read(Stream, Func<MaterialData, Task<Material>>)
Reads a 3D format file from the stream and returns a model asset.
Declaration
public abstract Task<Model> Read(Stream stream, Func<MaterialData, Task<Material>> materialAssigner = null)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | Seeked stream. |
Func<MaterialData, Task<Material>> | materialAssigner | Material assigner. |
Returns
Type | Description |
---|---|
Task<Model> | Model asset. |