GlimpseHudCallback

class GlimpseHudCallback(elements: List<HudElement>, disposable: <Error class: unknown class>? = null, hudShaderSourcesProvider: HudShaderSourcesProvider = HudShaderSourcesProvider.DEFAULT)

Glimpse callback for HUD.

The recommended way of using this callback is delegation.

Constructors

Link copied to clipboard
constructor(elements: List<HudElement>, disposable: <Error class: unknown class>? = null, hudShaderSourcesProvider: HudShaderSourcesProvider = HudShaderSourcesProvider.DEFAULT)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun onCreate(gl: <Error class: unknown class>)

Initializes this HUD.

Link copied to clipboard
open fun onDestroy(gl: <Error class: unknown class>)

Disposes program executor and mesh related to this HUD.

Link copied to clipboard
fun onInputEvent(position: <Error class: unknown class><Float>, event: Any?)

Dispatches given input event at given position to this HUD's elements.

Link copied to clipboard
open fun onRender(gl: <Error class: unknown class>)

Renders this HUD.

Link copied to clipboard
open fun onResize(gl: <Error class: unknown class>, x: Int, y: Int, width: Int, height: Int)

Recalculates orthographic lens of this HUD.