loadTexture

abstract fun loadTexture(name: String): Texture

Loads a texture.

Parameters

name

The 'filename' of the resource, such as myImage.png. For a hierarchical tree of resources, name may use a forward-slash / e.g. icons/myIcon.png. Do NOT use backslashes, even when you know that the resources will be loaded from a Windows filesystem.