Class KTXImporter
KTX File Format decoder https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/#2.
Implements
Inherited Members
Namespace: Evergine.Assets.Importers
Assembly: Evergine.Assets.dll
Syntax
public class KTXImporter : AAssetImporter<TextureSource>, IAssetImporter
Properties
Extensions
Gets the importer's extension.
Declaration
public override string[] Extensions { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
Overrides
Methods
CheckHeaderBytesKTXVersion(byte[])
If the bytes corresponds to the header of a KTX file, returns the KTX version. Otherwise, returns null.
Declaration
public static int? CheckHeaderBytesKTXVersion(byte[] bytes)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | bytes | Bytes to check. |
Returns
| Type | Description |
|---|---|
| int? | Read summary. |
CheckStreamKTXVersion(Stream)
If the Stream corresponds to a KTX file, returns the version. Otherwise, returns null.
Declaration
public static int? CheckStreamKTXVersion(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | Stream to check. |
Returns
| Type | Description |
|---|---|
| int? | Read summary. |
ImportData(Stream, TextureSource, bool)
Imports the asset data.
Declaration
public override void ImportData(Stream stream, TextureSource source, bool rawAsset)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream. |
| TextureSource | source | |
| bool | rawAsset | Indicates whether the asset is loaded as a raw asset. |
Overrides
ImportHeader(Stream, out TextureSource)
Decodes TGA header.
Declaration
public override void ImportHeader(Stream stream, out TextureSource source)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | Image stream. |
| TextureSource | source | Texture source. |