Class TextureConstructor
Constructs a texture by fetching it from the Web
Inheritance
object
TextureConstructor
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 |