Package-level declarations
Types
Wrapping interface around com.badlogic.gdx.ApplicationListener. Provides no-op implementations of all methods, making them optional to implement.
An equivalent of com.badlogic.gdx.Game delegating game events to a Screen. On contrary to Game
, KtxGame maintains a collection of screens mapped by their type and allows to change screens knowing only their type with setScreen. Thanks to this, its easier to cache screens without maintaining a singleton with all Screen instances manually. ScreenType generic type allows to users to use an extended specific base class (or interface) for all screens, without locking into Screen.
Wrapping interface around com.badlogic.gdx.InputProcessor. Provides empty implementations of all methods, making them optional to implement.
Functions
Provides a no-op implementation of Screen. A workaround of Screen nullability issues.
Logs profiling information of this PerformanceCounter as an organized block. Uses passed decimalFormat to format floating point numbers.
Profiles the given operation using a PerformanceCounter. The operation will be repeated repeats times to gather the performance data. PerformanceCounter.tick will be called after each operation. repeats will be used to set the window size of the PerformanceCounter. If printResults is set to true, a short summary will be printed by the application.
Profiles the given operation using this PerformanceCounter. The operation will be repeated repeats times to gather the performance data. PerformanceCounter.tick will be called after each operation. By default, repeats is set to the window size passed to the PerformanceCounter constructor or 10 if the window size is set to 1. If printResults is set to true, a short summary will be printed by the application.