sceneManager.h 796 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef SCENEMANAGER_H
  2. #define SCENEMANAGER_H
  3. #include "scene.h"
  4. //Add an enum in the future with the different scenes that it should be able to
  5. //render
  6. class SceneManager{
  7. public:
  8. //Dummy Constructor / Destructor
  9. SceneManager();
  10. ~SceneManager();
  11. //Initializes and closes all scene related stuff
  12. bool startUp();
  13. void shutDown();
  14. // Scene switching
  15. bool switchScene(std::string sceneID);
  16. // Update current scene
  17. void update(unsigned int deltaT);
  18. //Called by the rendermanager to prep the render queue
  19. Scene* getCurrentScene();
  20. private:
  21. bool loadScene(std::string sceneID);
  22. bool closeScene();
  23. std::string currentSceneID;
  24. Scene* currentScene;
  25. };
  26. #endif