Scene

Constructors

this
this(string id)

Default contrctor.

Members

Functions

activeCamera
void activeCamera(Camera camera)

Sets the current camera using its reference.

activeCamera
void activeCamera(string id)

Sets the current camera using its ID.

activeCamera
Camera activeCamera()

Returns the current camera.

clearCamera
void clearCamera(Camera camera)
id
string id()

Returns scene ID.

isRegistered
bool isRegistered()

Returns if scene is ready to run.

process
void process()

Process all Processable objects that have a process() method. It's synchronized with PhysicsCoreEngine.

register
void register()

Register scene to the CoreEngine. Invoke start for all Startable objects that have an start() method.

registerCamera
void registerCamera(Camera camera)
render
void render()

Render all Renderable objects that have a render() method.

resetTree
void resetTree()

Releases all scene tree nodes.

settings
const(SceneSettings) settings()

Returns scene settings.

toggleBetweenCameras
void toggleBetweenCameras(Camera camera1, Camera camera2)

Change view from a camera to another using their references.

toggleBetweenCameras
void toggleBetweenCameras(string id1, string id2)

Change view from a camera to another using their IDs.

tree
Node tree()

Returns a scene tree reference.

update
void update(float deltaTime)

Updates all Updatable objects that have an update() method. It's called every frame.

Static variables

shaderList
Renderable[string] shaderList;
Undocumented in source.

Variables

_ids
bool[string] _ids;
Undocumented in source.
processList
Processable[string] processList;
Undocumented in source.
renderList
Renderable[string] renderList;
Undocumented in source.
startList
Startable[string] startList;
Undocumented in source.
updateList
Updatable[string] updateList;
Undocumented in source.

Meta