org.rajawali3d.renderer / Renderer / replaceScene

replaceScene

open fun replaceScene(scene: Scene!, location: Int): Boolean

Replaces a Scene in the renderer at the specified location in the list. This does not validate the index, so if it is not contained in the list already, an exception will be thrown.

If the Scene being replaced is the one in current use, the replacement will be selected on the next frame.

Parameters

scene - Scene!: Scene object to add.

location - Int: Integer index of the Scene to replace.

Return
Boolean: boolean True if the replace task was successfully queued.

open fun replaceScene(oldScene: Scene!, newScene: Scene!): Boolean

Replaces the specified Scene in the renderer with the new one. If the Scene being replaced is the one in current use, the replacement will be selected on the next frame.

Parameters

oldScene - Scene!: Scene object to be replaced.

newScene - Scene!: Scene which will replace the old.

Return
Boolean: boolean True if the replace task was successfully queued.

open fun replaceScene(scene: Scene!, location: Int): Boolean

Replaces a Scene in the renderer at the specified location in the list. This does not validate the index, so if it is not contained in the list already, an exception will be thrown.

If the Scene being replaced is the one in current use, the replacement will be selected on the next frame.

Parameters

scene - Scene!: Scene object to add.

location - Int: Integer index of the Scene to replace.

Return
Boolean: boolean True if the replace task was successfully queued.

open fun replaceScene(oldScene: Scene!, newScene: Scene!): Boolean

Replaces the specified Scene in the renderer with the new one. If the Scene being replaced is the one in current use, the replacement will be selected on the next frame.

Parameters

oldScene - Scene!: Scene object to be replaced.

newScene - Scene!: Scene which will replace the old.

Return
Boolean: boolean True if the replace task was successfully queued.