| 12345678910111213141516171819202122232425262728293031323334353637 |
- #include "sceneManager.h"
- SceneManager::SceneManager(){
-
- }
- SceneManager::~SceneManager(){
-
- }
- bool SceneManager::startUp(){
- if (!loadScene()){
- printf("Could not load scene.\n");
- return false;
- }
- return true;
- }
- void SceneManager::shutDown(){
- delete currentScene;
- }
- //Not implemented yet, but I will want to do this in the future
- bool SceneManager::switchScene(){
- return true;
- }
- //for now just loads the teapot.obj
- bool SceneManager::loadScene(){
- bool success = true;
- currentScene = new Scene("teapot.obj");
- return success;
- }
- void SceneManager::update(){
- currentScene->update();
- }
|