Image

class Image(metadata: ThemeMetadata, image: NativeImage) : ThemeBackground

Background implementation that renders a static image texture.

Parameters

texture

The image texture

Constructors

Link copied to clipboard
constructor(metadata: ThemeMetadata, image: NativeImage)

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun draw(context: GuiGraphics, width: Int, height: Int, mouseX: Int, mouseY: Int, delta: Float): Boolean

Draws the background on the screen.

Link copied to clipboard
open fun onResourceReload()

Called when resources are reloaded.