Namespace P64::SceneManager

Functions to manager scenes.

Functions

void P64::SceneManager::load(uint16_t newSceneId)

Request loading a scene by ID.

Note that the actual load will happen at the end of the current frame. If this function was called multiple times, the last ID will be used.

This function does nothing if the provided ID is the current scene. If you want to force-reload the current scene, use reload() instead.

Parameters:

sceneId – scene to load

void P64::SceneManager::reload()

Reload the current scene.

This reload is deferred to the end of the current frame.

Scene &P64::SceneManager::getCurrent()

Returns the current scene.

Returns:

scene, never NULL