Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Notifier

Hierarchy

  • Notifier

Implements

Index

Constructors

constructor

  • new Notifier(gl: WebGLRenderingContext, capacity: number): Notifier
  • Parameters

    • gl: WebGLRenderingContext
    • capacity: number

    Returns Notifier

Methods

addItem

  • addItem(x: number, y: number, z: number, type: ItemType): void
  • Parameters

    • x: number
    • y: number
    • z: number
    • type: ItemType

    Returns void

addStat

  • addStat(x: number, y: number, z: number, type: StatType, value: number): void
  • Parameters

    • x: number
    • y: number
    • z: number
    • type: StatType
    • value: number

    Returns void

clear

  • clear(): void
  • Returns void

render

  • render(x: number, y: number, tileSize: number, tileScale: number, viewWidth: number, viewHeight: number): void
  • Parameters

    • x: number
    • y: number
    • tileSize: number
    • tileScale: number
    • viewWidth: number
    • viewHeight: number

    Returns void

setTexture

  • setTexture(texture: WebGLTexture, inverseTextureSize: Vec2): void
  • Parameters

    • texture: WebGLTexture
    • inverseTextureSize: Vec2

    Returns void

update

  • update(): void
  • Returns void

Generated using TypeDoc