From c2421c3ac2018faf5d47205ee979acec181d9672 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Jan 2022 18:04:00 +0000 Subject: Separate geographic data (GeoData) from its visual representation(s) (Terrain) --- application/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'application/main.cpp') diff --git a/application/main.cpp b/application/main.cpp index 128c9c1..eef0ed0 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -54,10 +55,13 @@ public: int run() { + geoData = std::make_shared(GeoData::Limits {{-120, -120}, {120, 120}}, 10.F); + geoData->generateRandom(); + Windows windows; windows.create(DISPLAY_WIDTH, DISPLAY_HEIGHT, this); - world.create(); + world.create(geoData); { auto rl = world.create(); -- cgit v1.2.3