summaryrefslogtreecommitdiff
path: root/ui/manualCameraController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/manualCameraController.cpp')
-rw-r--r--ui/manualCameraController.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/manualCameraController.cpp b/ui/manualCameraController.cpp
index 1d3a067..568c547 100644
--- a/ui/manualCameraController.cpp
+++ b/ui/manualCameraController.cpp
@@ -5,7 +5,7 @@
#include <maths.h>
bool
-ManualCameraController::handleInput(const SDL_Event & e)
+ManualCameraController::handleInput(const SDL_Event & e, const Position &)
{
switch (e.type) {
case SDL_KEYDOWN:
@@ -59,6 +59,11 @@ ManualCameraController::handleInput(const SDL_Event & e)
}
void
+ManualCameraController::render(const UIShader &, const Position &) const
+{
+}
+
+void
ManualCameraController::updateCamera(Camera * camera) const
{
camera->forward = glm::normalize(sincosf(direction) ^ -sin(pitch));