sceneManager.h 741 B

12345678910111213141516171819202122232425262728293031323334
  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();
  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. Scene *currentScene;
  24. };
  25. #endif