Scene

Home

A Scene is a container for all Urbjects added to it.

See also: Renderer, PerformanceRenderer, Camera

Constructors

Scene( ): Scene Initializes with default attribute values.
Scene( { root?: Urbject } ): Scene Initializes with the given attribute values. Default values are:

root new Urbject() The root Urbject of the Scene that contains all other Urbjects as children. See also: Urbject

Variables

Public Variables

root: Urbject The root Urbject of the Scene that contains all other Urbjects as children. See also: Urbject

Functions

Public Functions

add(urbject: Urbject): Urbject Adds the given Urbject to the root Urbject of the Scene and returns the added Urbject. See also: Urbject
remove(urbject: Urbject): Urbject Removes the given Urbject from the root Urbject of the Scene and returns the removed Urbject or undefined if it does not exist. See also: Urbject
copy(): Scene Returns a copy of the current Scene.

Static Functions

Scene.add(s: Scene, urbject: Urbject): Scene Adds the given Urbject to the root Urbject of a copy of the given Scene and returns the new Scene. See also: Urbject
Scene.remove(s: Scene, urbject: Urbject): Scene Removes the given Urbject from the root Urbject of a copy of the given Scene and returns the new Scene. See also: Urbject
Scene.copy(s: Scene): Scene Returns a copy of the current Scene or a new Scene constructed from an object with all of the public attributes of the Scene object.

Home

Copyright © 2020 Trevor Richard