Package arc.mock

Class MockGraphics

java.lang.Object
arc.Graphics
arc.mock.MockGraphics
All Implemented Interfaces:
Disposable

@Deprecated public class MockGraphics extends Graphics
Deprecated.
Just here for compatibility reasons, only contains methods about frame rate. Please use same methods from Application instead.
The headless backend does its best to mock elements. This is intended to make code-sharing between server and client as simple as possible.
  • Constructor Details

  • Method Details

    • getFrameId

      @Deprecated public long getFrameId()
      Deprecated.
      Description copied from class: Graphics
      Returns the id of the current frame. The general contract of this method is that the id is incremented only when the application is in the running state right before calling the ApplicationListener.update() method. Also, the id of the first frame is 0; the id of subsequent frames is guaranteed to take increasing values for 263-1 rendering cycles.
      Specified by:
      getFrameId in class Graphics
      Returns:
      the id of the current frame
    • getDeltaTime

      @Deprecated public float getDeltaTime()
      Deprecated.
      Specified by:
      getDeltaTime in class Graphics
      Returns:
      the time span between the current frame and the last frame in seconds. Might be smoothed over n frames.
    • getFramesPerSecond

      @Deprecated public int getFramesPerSecond()
      Deprecated.
      Specified by:
      getFramesPerSecond in class Graphics
      Returns:
      the average number of frames per second