class EE::Scene::SceneManager¶
Overview¶
#include <scenemanager.hpp> class SceneManager { public: // construction ~SceneManager(); // methods static bool isActive(); SceneNode* add(SceneNode* sceneNode); bool remove(SceneNode* sceneNode); size_t count() const; void draw(); void draw(EE::Window::Window* window); void update(const Time& elapsed); void update(); UISceneNode* getUISceneNode(); UISceneNode* getUISceneNode(EE::Window::Window* window); void setCurrentUISceneNode(UISceneNode* uiSceneNode); void destroyScenes(EE::Window::Window* window); Time getElapsed() const; };
Detailed Documentation¶
Methods¶
void draw(EE::Window::Window* window)
Draws only scene nodes associated with window using its graphics context.
UISceneNode* getUISceneNode(EE::Window::Window* window)
Returns the UI scene associated with window, or nullptr if none is registered.
void destroyScenes(EE::Window::Window* window)
Removes and destroys all registered scene nodes associated with window.