Class TextureConstructor
Constructs a texture by fetching it from the Web
Implements
Namespace: i5.Toolkit.Core.ProceduralGeometry
Assembly: cs.temp.dll.dll
Syntax
public class TextureConstructor : ITextureConstructor
Constructors
TextureConstructor(String)
Creates a texture constructor with the given load path
Declaration
public TextureConstructor(string loadPath)
Parameters
Type | Name | Description |
---|---|---|
String | loadPath | The path where the texture is stored |
Properties
LoadPath
The path where the texture is stored
Declaration
public string LoadPath { get; set; }
Property Value
Type | Description |
---|---|
String |
TextureLoader
Module which loads the object
Declaration
public IContentLoader<Texture2D> TextureLoader { get; set; }
Property Value
Type | Description |
---|---|
IContentLoader<Texture2D> |
Methods
FetchTextureAsync()
Fetches the texture from the Web based on the LoadPath
Declaration
public Task<Texture2D> FetchTextureAsync()
Returns
Type | Description |
---|---|
Task<Texture2D> | Returns the fetched texture or null if something went wrong |