loadTexture

fun loadTexture(key: String, path: String, useVRAM: Boolean = false)

Load the texture according to the given path and set the texture key.

Parameters

key

the key for specifying the loaded texture.

path

the path stored the texture.