org.rajawali3d.renderer / Renderer / switchSceneDirect

switchSceneDirect

open fun switchSceneDirect(nextScene: Scene!): Unit

Switches the Scene currently being displayed. It resets the OpenGL state and sets the projection matrix for the new scene.

This method should only be called from the main OpenGL render thread (Renderer#onRender(long, double)). Calling this outside of the main thread may case unexpected behaviour.

Parameters

nextScene - Scene!: Scene The scene to switch to.

open fun switchSceneDirect(nextScene: Scene!): Unit

Switches the Scene currently being displayed. It resets the OpenGL state and sets the projection matrix for the new scene.

This method should only be called from the main OpenGL render thread (Renderer#onRender(long, double)). Calling this outside of the main thread may case unexpected behaviour.

Parameters

nextScene - Scene!: Scene The scene to switch to.