Skip to main content

ZSceneStateHandler

actualpackageZSceneStateHandler
3 items

Functions

3
abstract fun onReady(context: ZContext, done: ()-> Unit)
Called when the scene or the system is ready to start interacting or rendering. This method is typically used to perform initialization tasks specific to the scene state.
abstract fun onRender(context: ZContext, done: ()-> Unit)
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.
abstract fun onResize(context: ZContext, width: Int, height: Int, done: ()-> Unit)
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.