diff options
author | Aki <please@ignore.pl> | 2022-05-15 18:01:38 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-05-15 18:01:38 +0200 |
commit | e49474fc0dcff041a9fae2857273938481cc9ec9 (patch) | |
tree | eb0dc5b7eceaa2ef9079385bacddd42c7f6c257c /main.cpp | |
parent | 345bb237a7f682670a6107ae75afd948cc1f6ab6 (diff) | |
download | derelict-e49474fc0dcff041a9fae2857273938481cc9ec9.zip derelict-e49474fc0dcff041a9fae2857273938481cc9ec9.tar.gz derelict-e49474fc0dcff041a9fae2857273938481cc9ec9.tar.bz2 |
Expanded label rendering
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -1,4 +1,4 @@ -#include <memory> +#include <utility> #include <raylib.h> @@ -11,15 +11,17 @@ int main(int argc, char* argv[]) { InitWindow(800, 600, "Derelict"); - SetWindowState(FLAG_WINDOW_RESIZABLE); - SetTargetFPS(60); - DumpSource source("sample.json"); - auto grids = Reader::read(source); - View view(grids); - while (!WindowShouldClose()) { - view.update(GetFrameTime()); - view.draw(); + SetWindowState(FLAG_WINDOW_RESIZABLE); + SetTargetFPS(60); + DumpSource source("sample.json"); + auto grids = Reader::read(source); + View view(std::move(grids)); + while (!WindowShouldClose()) + { + view.update(GetFrameTime()); + view.draw(); + } } CloseWindow(); } |