Companion

object Companion

The companion of TextureResource.

Functions

Link copied to clipboard
@JvmStatic
fun create(bitmap: Bitmap): TextureResource

Asynchronously create texture resource from bitmap.

Link copied to clipboard
@JvmStatic
fun load(path: String, loadType: LoadType = LoadType.FROM_ASSETS): TextureResource
@JvmStatic
fun load(path: String, loadType: LoadType = LoadType.FROM_ASSETS, option: TextureCreateOption = TextureCreateOption()): TextureResource

Loads texture resource via file path.