onResize

open fun onResize(context: ZContext, width: Int, height: Int, done: () -> Unit)(source)

Handles the resizing of the scene or rendering system, typically triggered when the viewport dimensions change. This should update internal state or configurations based on the new width and height values.

Uses the callback to specify the end of this operation.

Parameters

context

The context of the current scene, containing information about the rendering and scene states.

width

The new width of the viewport or rendering area.

height

The new height of the viewport or rendering area.

done

Callback to specify the end of this operation