Class TextureSlice
This class represent a texture slice.
Inherited Members
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. |
uint | mipSlice | Mipmapping slice. |
Fields
ArraySlice
The array slice 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)
Read TextureSlice from Binary file.
Declaration
public static TextureSlice Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | Binary reader. |
Returns
Type | Description |
---|---|
TextureSlice | Ne TextureSlice instance. |
Write(BinaryWriter)
Write current instance in a binary file.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | Binary writer. |