Package arc.mock
Class MockGraphics
java.lang.Object
arc.Graphics
arc.mock.MockGraphics
- All Implemented Interfaces:
Disposable
Deprecated.
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatDeprecated.longDeprecated.intDeprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface arc.util.Disposable
isDisposed
-
Constructor Details
-
MockGraphics
Deprecated.
-
-
Method Details
-
getFrameId
Deprecated.Description copied from class:GraphicsReturns 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 theApplicationListener.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:
getFrameIdin classGraphics- Returns:
- the id of the current frame
-
getDeltaTime
Deprecated.- Specified by:
getDeltaTimein classGraphics- Returns:
- the time span between the current frame and the last frame in seconds. Might be smoothed over n frames.
-
getFramesPerSecond
Deprecated.- Specified by:
getFramesPerSecondin classGraphics- Returns:
- the average number of frames per second
-
Applicationinstead.