Companion

object Companion

The companion of TextureResource.

Functions

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

Creates a TextureResource from a 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 a TextureResource from a file path.