Struct TextureLink
This struct represents a link between a material and a texture.
Namespace: Evergine.Framework.Assets.AssetParts
Assembly: Evergine.Framework.dll
Syntax
public struct TextureLink
Constructors
TextureLink(Guid, string)
Initializes a new instance of the TextureLink struct.
Declaration
public TextureLink(Guid id, string name)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | Texture ID. |
string | name | Texture link name. |
Fields
ID
The texture ID.
Declaration
public Guid ID
Field Value
Type | Description |
---|---|
Guid |
Name
The name of the texture.
Declaration
public string Name
Field Value
Type | Description |
---|---|
string |
Methods
Read(BinaryReader)
Reads this asset part.
Declaration
public static TextureLink Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
TextureLink | The loaded asset part. |
Write(BinaryWriter)
Writes this asset.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |