Class GltfImporterContext
The GLTF Importer context.
Implements
Inherited Members
Namespace: Evergine.Assets.Importers.GltfModel
Assembly: Evergine.Assets.dll
Syntax
public class GltfImporterContext : DisposableObject, IDisposable
  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 common available framerates.
Declaration
public static float[] Framerates
  Field Value
| Type | Description | 
|---|---|
| float[] | 
Methods
CalculateEmbeddedDirectory()
Calculates the embedded directory.
Declaration
public string CalculateEmbeddedDirectory()
  Returns
| Type | Description | 
|---|---|
| string | The embedded directory path.  | 
      
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
  Overrides
EmbeddedAssets(ModelSource)
Process 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)
Process this model.
Declaration
public void ProcessData(ModelSource resource)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ModelSource | resource | The model resource.  | 
      
ProcessResource()
Process 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 usafe 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.  |