From 9fff9d2a0d0a6af5e35697bde5203f429f73a854 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 28 Jan 2021 18:54:31 +0000 Subject: Monkey has outlived his usefullness, bye monkey --- application/main.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'application') diff --git a/application/main.cpp b/application/main.cpp index 0685d5e..b2c2a5e 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -4,19 +4,14 @@ #include "manualCameraController.h" #include #include -#include #include -#include #include #include #include #include #include -#include #include -#include #include -#include #include #include #include @@ -24,22 +19,6 @@ static const int DISPLAY_WIDTH = 800; static const int DISPLAY_HEIGHT = 600; -class Monkey : public WorldObject, public Physical { -public: - Monkey() : Physical {{0.0, 0.5, 1.0}, "res/monkey3.obj", "res/bricks.jpg"} { } - - void - tick(TickDuration elapsed) override - { - counter += 0.000625F * elapsed.count(); - location.GetRot().y = std::numbers::pi_v + sin(counter); - location.GetRot().z = 0.3 * cos(counter * 10); - } - -private: - float counter {}; -}; - class SDL_Application : public InputHandler, public std::enable_shared_from_this { public: SDL_Application() @@ -82,7 +61,6 @@ public: Worker w; - world.create(); world.create(); Shader shader; -- cgit v1.2.3