sceneManager.cpp 643 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include "sceneManager.h"
  2. SceneManager::SceneManager(){
  3. }
  4. SceneManager::~SceneManager(){
  5. }
  6. bool SceneManager::startUp(){
  7. if (!loadScene()){
  8. printf("Could not load scene.\n");
  9. return false;
  10. }
  11. return true;
  12. }
  13. void SceneManager::shutDown(){
  14. delete currentScene;
  15. }
  16. //Not implemented yet, but I will want to do this in the future
  17. bool SceneManager::switchScene(){
  18. return true;
  19. }
  20. //for now just loads the teapot.obj
  21. bool SceneManager::loadScene(){
  22. bool success = true;
  23. currentScene = new Scene("teapot.obj");
  24. return success;
  25. }
  26. void SceneManager::update(){
  27. currentScene->update();
  28. }