-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCCTK.cpp
67 lines (53 loc) · 1 KB
/
CCTK.cpp
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
65
66
67
#include "CCTK.hpp"
namespace wayround_i2p
{
namespace cctk
{
std::shared_ptr<CCTK> CCTK::create()
{
auto ret = std::shared_ptr<CCTK>(new CCTK());
return ret;
}
CCTK::CCTK()
{
}
CCTK::~CCTK()
{
}
int CCTK::applyCmdLineArgs(int argc, char **args)
{
return 0;
}
int CCTK::init()
{
system->init();
return 0;
}
int CCTK::run()
{
running = true;
return system->run();
}
int CCTK::setSystem(std::shared_ptr<SystemI> sys)
{
system = sys;
return 0;
}
std::shared_ptr<WindowI> CCTK::createWindow()
{
return nullptr;
}
std::shared_ptr<KeyboardI> CCTK::getKeyboard()
{
return nullptr;
}
std::shared_ptr<PointerI> CCTK::getPointer()
{
return nullptr;
}
std::weak_ptr<sigc::signal<void()>> CCTK::get_sigAfterStart()
{
return sigAfterStart;
}
} // namespace cctk
} // namespace wayround_i2p