Class TextureSourceLoader
Class that converts a texture source to a Texture object.
Implements
Inherited Members
Namespace: Evergine.Framework.Assets
Assembly: Evergine.Framework.dll
Syntax
public class TextureSourceLoader : AssetSourceLoadableConverter<TextureSource, Texture>, IAssetSourceLoadableConverter
Constructors
TextureSourceLoader(AssetsService, GraphicsContext)
Initializes a new instance of the TextureSourceLoader class.
Declaration
public TextureSourceLoader(AssetsService assetsService, GraphicsContext graphicsContext)
Parameters
| Type | Name | Description |
|---|---|---|
| AssetsService | assetsService | The assets service. |
| GraphicsContext | graphicsContext | The graphics context. |
Properties
ExportedExtension
Gets the exported extension of the asset.
Declaration
public override string ExportedExtension { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
Convert(TextureSource)
Converts an asset source into a loadable element.
Declaration
public override Texture Convert(TextureSource source)
Parameters
| Type | Name | Description |
|---|---|---|
| TextureSource | source | The asset source. |
Returns
| Type | Description |
|---|---|
| Texture | The loadable element. |