createTexture

external fun createTexture(image: Image, width: Int, height: Int): Int

Creates a texture based on provided inputs.

Parameters

image

Image.

width

Width of the image.

height

Height of the image.


fun createTexture(image: ByteBuffer, width: Int, height: Int, format: EColorFormat): Int
fun createTexture(image: ByteArray, width: Int, height: Int, format: EColorFormat): Int

Creates a texture based on provided inputs.

Parameters

image

Image in bytes.

width

Width of the image.

height

Height of the image.

format

Color format of the image.