Class TextureSlice
This class represents a texture slice.
Namespace: Evergine.Framework.Assets.AssetParts
Assembly: Evergine.Framework.dll
Syntax
public class TextureSlice
Constructors
TextureSlice()
Initializes a new instance of the TextureSlice class.
Declaration
public TextureSlice()
TextureSlice(Guid, uint, uint)
Initializes a new instance of the TextureSlice class.
Declaration
public TextureSlice(Guid id, uint arraySlice, uint mipSlice)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | Texture ID. |
uint | arraySlice | Array slice index. |
uint | mipSlice | Mipmap slice index. |
Fields
ArraySlice
The slice of the array in this texture.
Declaration
public uint ArraySlice
Field Value
Type | Description |
---|---|
uint |
MipSlice
The MipMapping level slice in this texture.
Declaration
public uint MipSlice
Field Value
Type | Description |
---|---|
uint |
TextureID
The texture IDs.
Declaration
public Guid TextureID
Field Value
Type | Description |
---|---|
Guid |
Methods
Read(BinaryReader)
Reads a TextureSlice from a binary file.
Declaration
public static TextureSlice Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | Binary reader. |
Returns
Type | Description |
---|---|
TextureSlice | New TextureSlice instance. |
Write(BinaryWriter)
Writes the current instance to a binary file.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | Binary writer. |