setImageAsync

fun setImageAsync(engine: Engine, level: Int, descriptor: Texture.PixelBufferDescriptor, callback: (Texture, AsyncCallStatus) -> Unit? = null): Int

setImage, asynchronously: returns an ID for Engine.cancelAsyncCall, and callback runs once on the main thread with how it ended. Needs Engine.isAsynchronousModeEnabled.


fun setImageAsync(engine: Engine, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, descriptor: Texture.PixelBufferDescriptor, callback: (Texture, AsyncCallStatus) -> Unit? = null): Int
fun setImageAsync(engine: Engine, level: Int, xoffset: Int, yoffset: Int, zoffset: Int, width: Int, height: Int, depth: Int, descriptor: Texture.PixelBufferDescriptor, callback: (Texture, AsyncCallStatus) -> Unit? = null): Int

setImage, asynchronously; see the level-only setImageAsync.