Interface Renderer
public interface Renderer
The renderer acts as the entry point from the application to the underlying
platform, managing the animation loop, graphics, audio, and input.
When started, the renderer will create the display system and then start the animation loop. Frame updates will be scheduled to match the targeted framerate. Each frame update consists of executing application logic for the current scene, after which the contents of the stage are rendered.
Application code does not interact with the Renderer directly.
Instead, the currently active scene is given access to the renderer in
callback methods via the SceneContext.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisSupported(GraphicsMode graphicsMode) voidstart(RenderConfig config, Scene initialScene) Starts this renderer based on the specified configuration.
-
Method Details
-
start
Starts this renderer based on the specified configuration. The renderer will initially display the specified scene.This method can be called from any thread. The renderer will run in its own thread, which is started by calling this method. All callback methods will be called from the renderer thread.
- Throws:
UnsupportedOperationException- if this renderer is unable to support the requested configuration.
-
isSupported
-