Class Animator

  • All Implemented Interfaces:
    FPSCounter, GLAnimatorControl

    public class Animator
    extends AnimatorBase

    An Animator can be attached to one or more GLAutoDrawables to drive their display() methods in a loop.

    The Animator class creates a background thread in which the calls to display() are performed. After each drawable has been redrawn, a brief pause is performed to avoid swamping the CPU, unless setRunAsFastAsPossible(boolean) has been called.

    The Animator execution thread does not run as a daemon thread, so it is able to keep an application from terminating.
    Call stop() to terminate the animation and it's execution thread.