Search Results for

    Show / Hide Table of Contents

    Class ModelRuntime

    Base class to load 3D formats at runtime.

    Inheritance
    object
    ModelRuntime
    GLBRuntime
    STLRuntime
    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.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX