Search Results for

    Show / Hide Table of Contents

    Class GltfImporterContext

    The glTF importer context.

    Inheritance
    object
    DisposableObject
    GltfImporterContext
    Inherited Members
    DisposableObject.Disposed
    DisposableObject.Dispose()
    DisposableObject.Dispose(bool)
    Namespace: Evergine.Assets.Importers.GltfModel
    Assembly: Evergine.Assets.dll
    Syntax
    public class GltfImporterContext : DisposableObject

    Constructors

    GltfImporterContext(string, string, Stream)

    Initializes a new instance of the GltfImporterContext class.

    Declaration
    public GltfImporterContext(string gltfFile, string gltfTargetPath, Stream stream)
    Parameters
    Type Name Description
    string gltfFile

    The asset path.

    string gltfTargetPath

    The glTF environment path.

    Stream stream

    The stream.

    Fields

    Framerates

    The most commonly available frame rates.

    Declaration
    public static float[] Framerates
    Field Value
    Type Description
    float[]

    Methods

    CalculateEmbeddedDirectory()

    Calculates the embedded directory path.

    Declaration
    public string CalculateEmbeddedDirectory()
    Returns
    Type Description
    string

    The embedded directory path.

    Destroy()

    Destroys all resources of this instance.

    Declaration
    protected override void Destroy()
    Overrides
    DisposableObject.Destroy()

    EmbeddedAssets(ModelSource)

    Processes the embedded assets of the glTF.

    Declaration
    public bool EmbeddedAssets(ModelSource resource)
    Parameters
    Type Name Description
    ModelSource resource

    The model resource.

    Returns
    Type Description
    bool

    True if there were embedded assets handled; False otherwise.

    ProcessData(ModelSource)

    Processes this model.

    Declaration
    public void ProcessData(ModelSource resource)
    Parameters
    Type Name Description
    ModelSource resource

    The model resource.

    ProcessResource()

    Processes this model.

    Declaration
    public ModelSource ProcessResource()
    Returns
    Type Description
    ModelSource

    The model source of the glTF file.

    VertexUsageFromString(string, out ElementSemanticType, out uint)

    Gets the vertex usage from string.

    Declaration
    public static void VertexUsageFromString(string semantic, out ElementSemanticType usage, out uint usageIndex)
    Parameters
    Type Name Description
    string semantic

    The semantic.

    ElementSemanticType usage

    The usage.

    uint usageIndex

    The usage index.

    Extension Methods

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