aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/camera.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-01-05 15:56:35 +0000
committerYann Herklotz <ymherklotz@gmail.com>2018-01-05 15:56:35 +0000
commitdb6480dccd9a3dbf4100a824930a36251f4e743c (patch)
treea36c5be39c86f9888e64076ef44c386e5160c088 /yage/core/camera.cpp
parent7b95e3a9eacf296f215c73e5d8ad9090a24adb20 (diff)
downloadYAGE-db6480dccd9a3dbf4100a824930a36251f4e743c.tar.gz
YAGE-db6480dccd9a3dbf4100a824930a36251f4e743c.zip
[Engine] Log levels added to engine.
Diffstat (limited to 'yage/core/camera.cpp')
-rw-r--r--yage/core/camera.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/yage/core/camera.cpp b/yage/core/camera.cpp
index c492351f..d52c8996 100644
--- a/yage/core/camera.cpp
+++ b/yage/core/camera.cpp
@@ -9,6 +9,8 @@
#include "camera.h"
#include "../render/shader.h"
+#include "logger.h"
+
#include <glad/glad.h>
#include <glm/gtc/matrix_transform.hpp>
@@ -43,4 +45,10 @@ void Camera::move(const glm::vec2 &direction)
update_matrix_ = true;
}
+void Camera::zoom(float factor)
+{
+ scale_ += factor;
+ update_matrix_ = true;
+}
+
} // namespace yage