-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (24 loc) · 690 Bytes
/
main.cpp
File metadata and controls
30 lines (24 loc) · 690 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
#include "common.hpp"
#include "settings.hpp"
#include "app.hpp"
config _config;
component_defaults _component_defaults;
animation_defaults _animation_defaults;
app * _app;
int main(int argc, char * argv[]) {
_config = { 1600, 900, 1.1f };
_app = &(app::get_instance());
for (int i = 0; i < 5; ++i) {
_app->get_active_scene().get_graph()->add_node();
for (int j = 0; j < i; ++j) {
_app->get_active_scene().get_graph()->add_edge(i, j);
}
}
while (!glfwWindowShouldClose(_app->get_window())) {
_app->render();
glfwPollEvents();
glfwSwapBuffers(_app->get_window());
glFinish();
}
return 0;
}