-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSceneManager.h
37 lines (31 loc) · 872 Bytes
/
SceneManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
class GameScene;
class SceneContext;
class DebugRenderer;
class SceneManager final
{
public:
SceneManager();
~SceneManager();
SceneManager(const SceneManager& t) = delete;
SceneManager& operator=(const SceneManager& t) = delete;
void AddGameScene(GameScene* pScene);
void RemoveGameScene(GameScene* pScene);
void SetActiveGameScene(const std::wstring& sceneName);
void NextScene();
void PreviousScene();
bool IsInputEnabled() { return m_InputEnabled; }
void Initialize();
void Update();
void Draw();
void Destroy();
void WindowStateChanged(bool active);
void ProcessMessage(UINT message, WPARAM wParam, LPARAM lParam);
void ToggleDebugRenderer();
private:
std::vector<GameScene*> m_Scenes;
bool m_IsInitialized;
GameScene *m_pActiveScene, *m_pNewActiveScene;
bool m_InputEnabled;
std::shared_ptr<DebugRenderer>m_pDebugRenderer;
};