Class KTXTexture
Inherited Members
Namespace: Evergine.Assets.Extensions.KTX
Assembly: Evergine.Assets.dll
Syntax
public class KTXTexture
Constructors
KTXTexture(KTXHeader, KTXKeyValuePair[], KTXMipmapLevel[])
Initializes a new instance of the KTXTexture class.
Declaration
public KTXTexture(KTXHeader header, KTXKeyValuePair[] keyValuePairs, KTXMipmapLevel[] mipmaps)
Parameters
Type | Name | Description |
---|---|---|
KTXHeader | header | The ktx header. |
KTXKeyValuePair[] | keyValuePairs | The key value pairs. |
KTXMipmapLevel[] | mipmaps | The mipmaps. |
Properties
Header
Gets the KTX Header.
Declaration
public KTXHeader Header { get; }
Property Value
Type | Description |
---|---|
KTXHeader |
KeyValuePairs
Gets the KTX keyvalue pairs.
Declaration
public KTXKeyValuePair[] KeyValuePairs { get; }
Property Value
Type | Description |
---|---|
KTXKeyValuePair[] |
Mipmaps
Gets the KTX mipmaps.
Declaration
public KTXMipmapLevel[] Mipmaps { get; }
Property Value
Type | Description |
---|---|
KTXMipmapLevel[] |
Methods
Load(BinaryReader, bool)
Loads the texture.
Declaration
public static KTXTexture Load(BinaryReader reader, bool readKeyValuePairs)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
bool | readKeyValuePairs | The key value pairs. |
Returns
Type | Description |
---|---|
KTXTexture | The KTX texture. |