summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-05-21 11:55:08 +0200
committerAki <please@ignore.pl>2022-05-21 11:55:08 +0200
commit7863e4caa1d07aef348a437fe0a662db68fd7ac3 (patch)
treebf52dfa7a7c45be1d1a696f5bf7c0c3f90beba68 /main.cpp
parentde8d7a812c4da9f0375dc47626c0e836ba728207 (diff)
downloadderelict-7863e4caa1d07aef348a437fe0a662db68fd7ac3.zip
derelict-7863e4caa1d07aef348a437fe0a662db68fd7ac3.tar.gz
derelict-7863e4caa1d07aef348a437fe0a662db68fd7ac3.tar.bz2
Added naive Timeline
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 96f5e23..b419c2e 100644
--- a/main.cpp
+++ b/main.cpp
@@ -15,8 +15,8 @@ main(int, char*[])
SetWindowState(FLAG_WINDOW_RESIZABLE);
SetTargetFPS(60);
DumpSource source("sample.json");
- auto grids = Reader::read(source);
- View view(std::move(grids));
+ auto [grids, timeline] = Reader::read(source);
+ View view(std::move(grids), std::move(timeline));
while (!WindowShouldClose())
{
view.update(GetFrameTime());