Base class for a Heaps application.
This class contains code to set up a typical Heaps app, including 3D and 2D scene, input, update and loops.
It's designed to be a base class for an application entry point, and provides several methods for overriding, in which we can plug custom code. See API documentation for more information.
Called during application setup after
By default does nothing. Override this method to provide application initialization logic.
privateloadAssets (onLoaded:Void ‑> Void):Void
Load assets asynchronously.
Called during application setup. By default immediately calls
Override this method to provide asynchronous asset loading logic.
a callback that should be called by the overriden method when loading is complete
Screen resize callback.
By default does nothing. Override this method to provide custom on-resize logic.
Switch either the 2d or 3d scene with another instance, both in terms of rendering and event handling. If you call disposePrevious, it will call dispose() on the previous scene.
Called each frame right before rendering.
First call is done after the application is set up (so
init are called).
Time elapsed since last frame, normalized.