Module technology.sola.engine
Package technology.sola.engine.core
Interface SolaPlatform.GameLoopProvider
- Enclosing class:
- SolaPlatform
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
GameLoopProvider is a
FunctionalInterface
defining the contract for providing a GameLoop
implementation for the sola game engine to use.-
Method Summary
-
Method Details
-
create
GameLoop create(EventHub eventHub, Consumer<Float> updateMethod, Runnable renderMethod, int targetUpdatesPerSecond) Creates a newGameLoop
instance- Parameters:
eventHub
- theEventHub
instanceupdateMethod
- the update method that is called each framerenderMethod
- the render method that is called each frametargetUpdatesPerSecond
- the target updates per second for the game loop- Returns:
- a new
GameLoop
instance
-