Package limn.scene

Interface Scene.Ticker

Enclosing class:
Scene
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Scene.Ticker
Animation hook, called once per frame while registered.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    tick(double dtSeconds)
     
  • Method Details

    • tick

      boolean tick(double dtSeconds)
      Parameters:
      dtSeconds - seconds since the previous tick (0 on the first), already clamped to Scene.MAX_TICK_SECONDS and (for a scene-time ticker) multiplied by Scene.timeScale()
      Returns:
      true to keep ticking, false to stop