summaryrefslogtreecommitdiff
path: root/gfx/manualCameraController.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-12-13 23:47:30 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-13 23:47:30 +0000
commit1686a01b6ae7467e71eac247078248de4a3b3423 (patch)
tree53716ce767b1b775dc06f658a41a647bddbbeac1 /gfx/manualCameraController.h
parentMove TickDuration to its own files (diff)
downloadilt-1686a01b6ae7467e71eac247078248de4a3b3423.tar.bz2
ilt-1686a01b6ae7467e71eac247078248de4a3b3423.tar.xz
ilt-1686a01b6ae7467e71eac247078248de4a3b3423.zip
Refactor to start splitting out UI components
Diffstat (limited to 'gfx/manualCameraController.h')
-rw-r--r--gfx/manualCameraController.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/gfx/manualCameraController.h b/gfx/manualCameraController.h
deleted file mode 100644
index f2141a4..0000000
--- a/gfx/manualCameraController.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef MANUAL_CAMERA_CONTROLLER_H
-#define MANUAL_CAMERA_CONTROLLER_H
-
-#include "game/worldobject.h"
-#include "inputHandler.h"
-#include <SDL2/SDL.h>
-#include <gfx/camera_controller.h>
-#include <glm/glm.hpp>
-#include <maths.h>
-
-class Camera;
-
-class ManualCameraController : public CameraController, public InputHandler {
-public:
- explicit ManualCameraController(glm::vec2 f) : focus {f} { }
-
- bool handleInput(SDL_Event & e) override;
-
- void tick(TickDuration) override { }
-
- void updateCamera(Camera * camera) const override;
-
-private:
- bool ctrl {false}, mrb {false};
- glm::vec2 focus;
- float direction {quarter_pi};
- float dist {40}, pitch {quarter_pi};
-};
-#endif