summaryrefslogtreecommitdiff
path: root/ui/manualCameraController.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-01 19:58:06 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-01 19:59:07 +0000
commitb1ad84be00b9a88af0a9e087f5d5b724a8b3077d (patch)
tree4b58c098772e35ca307148e8a3a36103ec429b23 /ui/manualCameraController.h
parentRemove more use of legacy types from asset factory (diff)
downloadilt-b1ad84be00b9a88af0a9e087f5d5b724a8b3077d.tar.bz2
ilt-b1ad84be00b9a88af0a9e087f5d5b724a8b3077d.tar.xz
ilt-b1ad84be00b9a88af0a9e087f5d5b724a8b3077d.zip
Remove more use of legacy types from camera controller
Diffstat (limited to 'ui/manualCameraController.h')
-rw-r--r--ui/manualCameraController.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/manualCameraController.h b/ui/manualCameraController.h
index 1efaee1..2f955e7 100644
--- a/ui/manualCameraController.h
+++ b/ui/manualCameraController.h
@@ -11,7 +11,7 @@ class Camera;
class ManualCameraController : public CameraController, public UIComponent {
public:
- explicit ManualCameraController(Position2D f) : UIComponent {{}}, focus {f} { }
+ explicit ManualCameraController(GlobalPosition2D f) : UIComponent {{}}, focus {f} { }
bool handleInput(const SDL_Event & e, const Position &) override;
void render(const UIShader &, const Position & parentPos) const override;
@@ -20,7 +20,7 @@ public:
private:
bool ctrl {false}, mrb {false};
- Position2D focus;
+ GlobalPosition2D focus;
float direction {quarter_pi};
float dist {4000}, pitch {quarter_pi};
};