aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 97d3b17..55fb627 100644
--- a/main.cpp
+++ b/main.cpp
@@ -6,6 +6,7 @@
#include "Deserializer.h"
#include "Parser.h"
#include "View.h"
+#include "ViewController.h"
using namespace std;
@@ -46,10 +47,15 @@ int main(int argc, char** argv) {
Museum m {};
load_museum(m, argc, argv);
+ printf("%s", m.canvas.to_string(true).c_str());
+
View v {};
- load_view(v, m);
+ ViewController vc {v, m};
- printf("%s", m.canvas.to_string(true).c_str());
+ while (v.open) {
+ m.update();
+ vc.update();
+ }
return EXIT_SUCCESS;
}