-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEngineFacede.cpp
More file actions
34 lines (33 loc) · 827 Bytes
/
EngineFacede.cpp
File metadata and controls
34 lines (33 loc) · 827 Bytes
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
#include "EngineFacede.h"
#include "Engine.h"
Engine &EngineFacede::instance() {
static Engine This;
return This;
}
void EngineFacede::init() {
instance();
}
Matrix EngineFacede::getViewMatrix() {
return instance().getViewMatrix();
}
void EngineFacede::showScene(Renderer &r) {
instance().showScene(r);
}
void EngineFacede::showOverlay(Renderer &r) {
instance().showOverlay(r);
}
void EngineFacede::keyboard(unsigned char key, int x, int y) {
instance().keyboard(key, x, y);
}
void EngineFacede::click(int button, int state, int x, int y) {
instance().click(button, state, x, y);
}
void EngineFacede::motion(int x, int y) {
instance().motion(x, y);
}
void EngineFacede::reshape(int w, int h) {
instance().reshape(w, h);
}
const char *EngineFacede::name() {
return Engine::name();
}