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 TextureSourceLoader class.
Declaration
public TextureSourceLoader(AssetsService assetsService, GraphicsContext graphicsContext)
Parameters
Type | Name | Description |
---|---|---|
AssetsService | assetsService | 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.
Declaration
public override Texture Convert(TextureSource source)
Parameters
Type | Name | Description |
---|---|---|
TextureSource | source | The asset source. |
Returns
Type | Description |
---|---|
Texture | The loadable element. |