aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/SceneManager.hpp
blob: 77898233a2193e38f96e39a22ad4a4fc0fc68c0b (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "SceneManager.h"

using namespace crepe;
using namespace std;

// Add a new concrete scene to the scene manager
template <typename T>
void SceneManager::add_scene(string name) {
	static_assert(is_base_of<Scene, T>::value, "T must be derived from Scene");
	scenes.emplace_back(make_unique<T>(name));
}