onRender

open fun onRender(action: (dt: Duration) -> Unit): RemoveContextCallback

Creates a new render callback is invoked on every frame.

Return

a lambda that can be invoked to remove the callback