Interface FrameListener

All Known Implementing Classes:
BaseFrameListener, EndFrameListener, StartFrameListener

public interface FrameListener
A FrameListener is a listener fired in every frame, it will be invoked at the start, and at the end.
Author:
Grégory Van den Borre
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Called when a frame ends, if you need the time used in this frame, use frameEnded(long time) instead.
    boolean
    frameEnded(long time)
    Called when a frame ends.
    boolean
    Called when a frame begins.
  • Method Details

    • frameStarted

      boolean frameStarted()
      Called when a frame begins.
      Returns:
      false if the listener has finished his job and must be removed from the notify list.
    • frameEnded

      boolean frameEnded(long time)
      Called when a frame ends.
      Parameters:
      time - Time since the begin of this frame, must be positive.
      Returns:
      false if the listener has finished his job and must be removed from the notify list.
    • frameEnded

      boolean frameEnded()
      Called when a frame ends, if you need the time used in this frame, use frameEnded(long time) instead.
      Returns:
      false if the listener has finished his job and must be removed from the notify list.