summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
blob: d1c9b86bb0acc8a12fbb62f1914a84b9c6854339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <memory>

#include <raylib.h>

#include "DumpSource.h"
#include "View.h"


int
main(int argc, char* argv[])
{
    InitWindow(800, 600, "Derelict");
    SetWindowState(FLAG_WINDOW_RESIZABLE);
    SetTargetFPS(60);
    View view(std::make_unique<DumpSource>("sample.json"));
    while (!WindowShouldClose())
    {
        view.update(GetFrameTime());
        view.draw();
    }
    CloseWindow();
}