Class TextureInfoPart
The texture information part.
Namespace: Evergine.Framework.Assets.AssetParts
Assembly: Evergine.Framework.dll
Syntax
public class TextureInfoPart : AssetPart
Constructors
TextureInfoPart()
Initializes a new instance of the TextureInfoPart class.
Declaration
public TextureInfoPart()
Fields
DataFormat
The format the TextureDataPart of the parent TextureSource. Or none if it doesn't have any data yet. The DataFormat will be none when you first load the editor. When you open an image file in the editor the DataPart will be loaded and, depending on the type of file, DataFormat will be set to bitmap oor KTX.
Declaration
public TextureInfoPart.Format DataFormat
Field Value
| Type | Description |
|---|---|
| TextureInfoPart.Format |
Description
Describes the texture.
Declaration
public TextureDescription Description
Field Value
| Type | Description |
|---|---|
| TextureDescription |
SamplerID
The sampler ID.
Declaration
public Guid SamplerID
Field Value
| Type | Description |
|---|---|
| Guid |
Methods
Read(BinaryReader)
Reads this asset part.
Declaration
public static TextureInfoPart Read(BinaryReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryReader | reader | The binary reader. |
Returns
| Type | Description |
|---|---|
| TextureInfoPart | The loaded asset part. |
Write(BinaryWriter)
Writes the sub-asset.
Declaration
public override void Write(BinaryWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryWriter | writer | The stream. |