| 1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef SCENEMANAGER_H
- #define SCENEMANAGER_H
- #include "scene.h"
- //Add an enum in the future with the different scenes that it should be able to
- //render
- class SceneManager{
- public:
- //Dummy Constructor / Destructor
- SceneManager();
- ~SceneManager();
- //Initializes and closes all scene related stuff
- bool startUp();
- void shutDown();
- // Scene switching
- bool switchScene(std::string sceneID);
- // Update current scene
- void update(unsigned int deltaT);
- //Called by the rendermanager to prep the render queue
- Scene* getCurrentScene();
- private:
- bool loadScene(std::string sceneID);
- bool closeScene();
- std::string currentSceneID;
- Scene* currentScene;
- };
- #endif
|