onUpdate

open fun onUpdate(context: ZContext, done: () -> Unit)(source)

Handles the updating process for the current scene and rendering context. This method is expected to be called during each frame of the rendering loop.

Uses the callback to specify the end of this operation.

Parameters

context

The current scene context encapsulating the state of the scene, active camera, rendering context, and screen dimensions. It provides necessary data required for rendering.

done

Callback to specify the end of this operation