onRender

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

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

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 rendering operation.