Class TextureSource
This class represent the texture asset source.
Implements
Inherited Members
Namespace: Evergine.Framework.Assets
Assembly: Evergine.Framework.dll
Syntax
public class TextureSource : AssetSource, IAssetSource
Properties
AssetParts
Gets the asset parts of the source.
Declaration
public override List<AssetPart> AssetParts { get; }
Property Value
Type | Description |
---|---|
List<AssetPart> |
Overrides
TextureData
Gets or sets the texture info.
Declaration
public TextureDataPart TextureData { get; set; }
Property Value
Type | Description |
---|---|
TextureDataPart |
TextureInfo
Gets or sets the texture info.
Declaration
public TextureInfoPart TextureInfo { get; set; }
Property Value
Type | Description |
---|---|
TextureInfoPart |
Methods
CalculateType()
Calculate the texture type.
Declaration
public TextureType CalculateType()
Returns
Type | Description |
---|---|
TextureType | The texture type enum. |
Free()
Free all resources of this asset source.
Declaration
public override void Free()
Overrides
GetDataBoxes(TextureInfoPart, TextureDataPart)
Gets the texture databoxes.
Declaration
public static DataBox[] GetDataBoxes(TextureInfoPart textureInfo, TextureDataPart textureData)
Parameters
Type | Name | Description |
---|---|---|
TextureInfoPart | textureInfo | The texture info part. |
TextureDataPart | textureData | The texture data part. |
Returns
Type | Description |
---|---|
DataBox[] | The texture databoxes. |