TextureResource

A representation of a texture.

Constructors

Link copied to clipboard
constructor(path: String, loadType: LoadType = LoadType.FROM_ASSETS, option: TextureCreateOption = TextureCreateOption())

Construct TextureResource by specifying path.

constructor(path: String, loadType: LoadType = LoadType.FROM_ASSETS)

Construct TextureResource by specifying path.

constructor(bitmap: Bitmap)

Asynchronously create texture resource from bitmap.

Types

Link copied to clipboard
object Companion

The companion of TextureResource.

Functions

Link copied to clipboard
open override fun close()

You need to release the resource manually to ensure that the resource no longer takes up memory.