forked from Shell4026/ShellEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEngineInit.h
More file actions
64 lines (54 loc) · 1.01 KB
/
Copy pathEngineInit.h
File metadata and controls
64 lines (54 loc) · 1.01 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#pragma once
#include "Core/ModuleLoader.h"
#include "Core/ThreadSyncManager.h"
#include <memory>
namespace sh
{
namespace core
{
class GarbageCollection;
}
namespace window
{
class Window;
}
namespace render
{
class Renderer;
}
namespace game
{
class World;
class ImGUImpl;
class ComponentModule;
class GameThread;
class RenderThread;
}
class EngineInit
{
private:
core::ModuleLoader moduleLoader;
core::ThreadSyncManager threadSyncManager;
core::GarbageCollection* gc;
game::GameThread* gameThread;
game::RenderThread* renderThread;
game::ComponentModule* componentModule;
std::unique_ptr<window::Window> window;
std::unique_ptr<game::ImGUImpl> gui;
std::unique_ptr<render::Renderer> renderer;
game::World* world;
int limitFps;
bool bStop;
private:
inline void LoadModule();
inline void InitResource();
inline void ProcessInput();
inline void Loop();
inline void SyncThread();
public:
EngineInit();
~EngineInit();
void Start();
void Clean();
};
}