Class TextureSourceLoader
Class that converts a texturesource 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 Texture
Declaration
public TextureSourceLoader(AssetsService assetsService, GraphicsContext graphicsContext)
Parameters
Type | Name | Description |
---|---|---|
Assets |
assetsService | Assets Service. |
Graphics |
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.
Declaration
public override Texture Convert(TextureSource source)
Parameters
Type | Name | Description |
---|---|---|
Texture |
source | The asset source. |
Returns
Type | Description |
---|---|
Texture | The loadable element. |