createTexture

actual fun createTexture(engine: Engine, buffer: ByteArray, options: KTX1Loader.Options): Texture?

Decodes KTX1 bytes into a Filament Texture.

Return

the created Texture, or null on failure

Parameters

engine

the Engine to use

buffer

the raw KTX1 image data

options

decoding options, including sRGB toggle

expect fun createTexture(engine: Engine, buffer: ByteArray, options: KTX1Loader.Options): Texture?

Decodes KTX1 bytes into a Filament Texture.

Return

the created Texture, or null on failure

Parameters

engine

the Engine to use

buffer

the raw KTX1 image data

options

decoding options, including sRGB toggle

actual fun createTexture(engine: Engine, buffer: ByteArray, options: KTX1Loader.Options): Texture?

Decodes KTX1 bytes into a Filament Texture.

Return

the created Texture, or null on failure

Parameters

engine

the Engine to use

buffer

the raw KTX1 image data

options

decoding options, including sRGB toggle

actual fun createTexture(engine: Engine, buffer: ByteArray, options: KTX1Loader.Options): Texture?

Decodes KTX1 bytes into a Filament Texture.

Return

the created Texture, or null on failure

Parameters

engine

the Engine to use

buffer

the raw KTX1 image data

options

decoding options, including sRGB toggle

actual fun createTexture(engine: Engine, buffer: ByteArray, options: KTX1Loader.Options): Texture?

Decodes KTX1 bytes into a Filament Texture.

Return

the created Texture, or null on failure

Parameters

engine

the Engine to use

buffer

the raw KTX1 image data

options

decoding options, including sRGB toggle