TextureResource

A representation of a texture.

Constructors

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

Constructs a TextureResource from a file path.

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

Constructs a TextureResource from a file path.

constructor(bitmap: Bitmap)

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