From 535be42da6a32cae03fd0422b44862fdf9638c5b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 25 Jan 2021 01:11:09 +0000 Subject: Generate some basic flat terrain --- application/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'application') diff --git a/application/main.cpp b/application/main.cpp index f510eca..f7861c8 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -1,3 +1,4 @@ +#include "game/terrain.h" #include "gfx/window.h" #include #include @@ -21,7 +22,7 @@ static const int DISPLAY_HEIGHT = 600; class Monkey : public WorldObject, public Physical { public: - Monkey() : Physical {{}, "res/monkey3.obj", "res/bricks.jpg"} { } + Monkey() : Physical {{0.0, 0.5, 1.0}, "res/monkey3.obj", "res/bricks.jpg"} { } void tick(TickDuration elapsed) override @@ -66,6 +67,7 @@ public: World world; world.create(); + world.create(); Shader shader; Camera camera({-5.0F, 2.0F, -5.0F}, 70.0F, (float)DISPLAY_WIDTH / (float)DISPLAY_HEIGHT, 0.1F, 100.0F); -- cgit v1.2.3