Scene

The Scene contains a list of all objects that should be drawn at a given time.

Constructors

this
this()

The root object of the scene.

Members

Functions

addChild
void addChild(GameObject newChild)

Adds object to the children, adds it to the scene graph.

clear
void clear()

Remove all objects from the collection.

draw
void draw()

Draws all objects in the scene.

loadObjects
void loadObjects(string objectPath = "")

Load all objects inside the specified folder in FilePath.Objects.

opIndex
GameObject opIndex(string name)

Gets the object in the scene with the given name.

opIndex
GameObject opIndex(uint index)

Gets the object in the scene with the given id.

refresh
void refresh()

Refreshes all objects in the scene that need refreshing.

removeChild
void removeChild(GameObject oldChild)

Removes the given object as a child from this scene.

update
void update()

Updates all objects in the scene.

Properties

objects
GameObject[] objects [@property getter]

Gets all objects in the scene.

Variables

camera
Camera camera;

The camera to render with.

Meta