summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
blob: f3c16f6883c3e05fd10af0c4ebe275b268e9e6bf (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 "ExampleSource.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<ExampleSource>());
    while (!WindowShouldClose())
    {
        view.update(GetFrameTime());
        view.draw();
    }
    CloseWindow();
}