summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-05-15 18:01:38 +0200
committerAki <please@ignore.pl>2022-05-15 18:01:38 +0200
commite49474fc0dcff041a9fae2857273938481cc9ec9 (patch)
treeeb0dc5b7eceaa2ef9079385bacddd42c7f6c257c /main.cpp
parent345bb237a7f682670a6107ae75afd948cc1f6ab6 (diff)
downloadderelict-e49474fc0dcff041a9fae2857273938481cc9ec9.zip
derelict-e49474fc0dcff041a9fae2857273938481cc9ec9.tar.gz
derelict-e49474fc0dcff041a9fae2857273938481cc9ec9.tar.bz2
Expanded label rendering
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/main.cpp b/main.cpp
index c21aa0d..2116582 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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();
}