blob: 41d5ef2059eb5e4f95336a3bce3d9314c081909a (
plain)
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
|
#include <memory>
#include <utility>
#include <raylib.h>
#include "App.h"
#include "DumpSource.h"
#include "Globals.h"
#include "Reader.h"
#include "View.h"
App app;
int
main(int, char*[])
{
{
DumpSource source("sample.json");
auto [grids, timeline] = Reader::read(source);
auto view = std::make_unique<View>(std::move(grids), std::move(timeline));
app.assign(std::move(view));
}
while (!WindowShouldClose())
app.loop();
}
|