-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
42 lines (33 loc) · 860 Bytes
/
main.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
#include "apis/opengl/include.hpp"
#include "demos/backpack-demo.hpp"
#include "demos/collision-demo.hpp"
#include "demos/fps-demo.hpp"
#include "demos/many-light-demo.hpp"
#include "demos/tunnel-demo.hpp"
/*
TODO:
Optimizations:
1) do not unbind textures in different shaders
2) render objects with same material in one batch
3) use stencil pass for light volumes: https://ogldev.org/www/tutorial37/tutorial37.html
4) use uniform buffer objects
Features:
1) Bloom
2) Deferred + Forward renderings for transparency
Other:
use absolute path for includes
Plan:
1) Port to Windows
2) Create scene editor
*/
int main() {
IEngine* engine = new GlEngine();
// CollisionDemo scene;
// ManyLightsDemo scene;
// TunnelDemo scene;
FpsDemo scene;
// BackpackDemo scene;
engine->setScene(&scene);
engine->start();
return 0;
}