AbstractThe constructor is passed to Application. Also registers the global keyboard listener for showcases.
The main camera.
The canvas element.
The engine configuration.
Whether debug visualization is enabled.
The interaction manager for gamification / picking.
The active renderer.
The current scene.
ProtectedonA hook method that is called when the canvas element is recreated. By default, it binds the click event to request PointerLock. Inheriting classes can override this if needed.
ProtectedonCalled once after the GadgetInspector is created. Override in subclasses to register scene-specific inspector controls.
The newly created inspector instance.
ProtectedonCentral keyboard control for all showcasess. Inheriting classes can override this method and call super.onKeyDown(event).
Protected AbstractsetupCalled to setup the scene after the engine is initialized.
Initializes and starts the application loop.
Stops the application loop.
ProtectedupdateDefault update method for examples. Subclasses can override this to implement custom logic.
Time elapsed since the last frame.
ProtectedwaitHelper to wait for all currently loading assets to finish. Useful to call at the end of setupScene.
Base class for applications built with the SmallWorld engine.