summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
blob: a0c4285aa433406cc0fbeb2ec61dd1ff85c7a983 (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
#include <memory>
#include <utility>

#include <raylib.h>

#include "App.h"
#include "DumpSource.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();
}