Quad

class Quad(val texture: <Error class: unknown class>, var position: <Error class: unknown class><Float> = Vec2.nullVector(), origin: <Error class: unknown class><Float> = Vec2(x = 0.5f, y = 0.5f)) : BaseHudElement, HudAtom

A single quad.

A quad is the most atomic element of HUD.

Constructors

Link copied to clipboard
constructor(texture: <Error class: unknown class>, position: <Error class: unknown class><Float> = Vec2.nullVector(), origin: <Error class: unknown class><Float> = Vec2(x = 0.5f, y = 0.5f))

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Adds given input events listener to this element.

Link copied to clipboard
open override fun handleInputEvent(position: <Error class: unknown class><Float>, event: Any?): Boolean

Handles given input event at given position.

Link copied to clipboard

Removes given input events listener from this element.

Properties

Link copied to clipboard
open override val atoms: Iterable<HudAtom>

A singleton list consisting of this quad.

Link copied to clipboard
open override val boundingBox: BoundingBox

Bounding box of this quad.

Link copied to clipboard

Height of this quad.

Link copied to clipboard

Intrinsic height of this atom.

Link copied to clipboard

Intrinsic width of this atom.

Link copied to clipboard
open override var isVisible: Boolean

true if this element is visible.

Link copied to clipboard
open override val modelMatrix: <Error class: unknown class><Float>

Output model matrix for this quad.

Link copied to clipboard
open override var position: <Error class: unknown class><Float>

Position of this element.

Link copied to clipboard
var rotation: <Error class: unknown class><Float>

Rotation angle of this quad.

Link copied to clipboard
open override val texture: <Error class: unknown class>

Texture of this quad.

Link copied to clipboard

Width of this quad.