FrameListener#

Type alias FrameListener

FrameListener: ((time, elapsed) => void)

Type declaration

    • (time, elapsed): void
    • Callback function which can be registered via the FrameAPI.

      Parameters

      • time: number

        Total time in milliseconds since the start of the internal update loop.

      • elapsed: number

        Elapsed time since the last run of the internal update loop.

      Returns void