fromBitmap

fun fromBitmap(bitmapProvider: BitmapProvider): TextureImageSourceBuilder

Will build a texture source from a bitmap provided by bitmapProvider.

Note: After the bitmap provided by bitmapProvider is used to set a texture image, it will be recycled. It is not safe to provide any instance of a bitmap used elsewhere.