createTexture

actual fun createTexture(engine: Engine, buffer: ByteArray, internalFormat: Texture.InternalFormat): Texture?

Decodes HDR bytes into a Filament Texture.

Return

the created Texture, or null on failure

Parameters

engine

the Engine to create the texture with

buffer

the raw HDR image data

internalFormat

the internal format to use for the resulting texture

Throws

on Web — filament.js exposes no Radiance/RGBE decoder.

expect fun createTexture(engine: Engine, buffer: ByteArray, internalFormat: Texture.InternalFormat): Texture?

Decodes HDR bytes into a Filament Texture.

Return

the created Texture, or null on failure

Parameters

engine

the Engine to create the texture with

buffer

the raw HDR image data

internalFormat

the internal format to use for the resulting texture

Throws

on Web — filament.js exposes no Radiance/RGBE decoder.

actual fun createTexture(engine: Engine, buffer: ByteArray, internalFormat: Texture.InternalFormat): Texture?

Decodes HDR bytes into a Filament Texture.

Return

the created Texture, or null on failure

Parameters

engine

the Engine to create the texture with

buffer

the raw HDR image data

internalFormat

the internal format to use for the resulting texture

Throws

on Web — filament.js exposes no Radiance/RGBE decoder.

actual fun createTexture(engine: Engine, buffer: ByteArray, internalFormat: Texture.InternalFormat): Texture?

Decodes HDR bytes into a Filament Texture.

Return

the created Texture, or null on failure

Parameters

engine

the Engine to create the texture with

buffer

the raw HDR image data

internalFormat

the internal format to use for the resulting texture

Throws

on Web — filament.js exposes no Radiance/RGBE decoder.

actual fun createTexture(engine: Engine, buffer: ByteArray, internalFormat: Texture.InternalFormat): Texture?

Decodes HDR bytes into a Filament Texture.

Return

the created Texture, or null on failure

Parameters

engine

the Engine to create the texture with

buffer

the raw HDR image data

internalFormat

the internal format to use for the resulting texture

Throws

on Web — filament.js exposes no Radiance/RGBE decoder.