public interface Scene
Scenes will receive updates at various points throughout their life cycle: when a scene starts (either because the scene is explictly started or because it's the application's initial scene), when the scene ends (because the application switches to another scene or because the application is terminated), and during frame updates. These frame updates are split into an update phase and a rendering phase. The renderer will attempt to call both as close to the targeted framerate as possible, but this may not always be possible depending on performance. In such cases, the renderer can prioritize frame updates over frame renders. In other words, one update is not always followed by one render, in some cases there could be several updates before the render is performed.
| Modifier and Type | Method and Description |
|---|---|
void |
onFrame(float deltaTime,
InputDevice input) |
void |
onRender(RenderContext context) |
default void |
onSceneEnd() |
void |
onSceneStart(MediaLoader mediaLoader) |
void onSceneStart(MediaLoader mediaLoader)
void onFrame(float deltaTime,
InputDevice input)
void onRender(RenderContext context)
default void onSceneEnd()