The WebAssembly class

Constructors

Properties

_vertexBuffer: Float32Array

The tile vertex buffer

_vertexBuffer360: Float32Array

The tile vertex buffer for 360

The main instance

ready: boolean = false

Wasm inited

_textureBuffer: Float32Array = ...

The tile texture buffer

_textureBuffer360: Float32Array

The tile texture buffer for 360

segsX: number

Number of X geometry segments per tile

segsY: number

Number of Y geometry segments per tile

Methods

  • Add a child independent canvas to the current canvas, used for grid images

    Parameters

    Returns Promise<void>

    Promise when the image is added

  • Add a child image to the current canvas

    Parameters

    Returns Promise<void>

    Promise when the image is added

  • Simple image fader

    Parameters

    • ptr: number

      The child image mem pointer

    • opacity: number

      The target opacity

    • direct: boolean = false

      Set immediately

    Returns void

  • Load the WebAssembly module

    Returns Promise<void>

    The promise when loading is complete

  • Remove a canvas

    Parameters

    Returns void

  • Request a next frame to draw

    Returns void

  • Resize the internal canvas

    Parameters

    Returns void

  • Set the specified canvas as active

    Parameters

    Returns void

  • Unbind this module

    Returns void