aboutsummaryrefslogtreecommitdiff
path: root/source/Camera.hpp
diff options
context:
space:
mode:
authorhnOsmium0001 <[email protected]>2022-05-07 23:13:14 -0700
committerhnOsmium0001 <[email protected]>2022-05-07 23:13:14 -0700
commitc2cba4424ea902f062e6af4733670f2be0494889 (patch)
tree39b1e9215a5b22a58792517bc67dcbb2b185ffa7 /source/Camera.hpp
parenteb4e202ee8d6e32aebf252cc107f6ec8dfd75b8f (diff)
Add more camera controls (3D mode, scroll scaling)
Diffstat (limited to 'source/Camera.hpp')
-rw-r--r--source/Camera.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/Camera.hpp b/source/Camera.hpp
index c7ca6de..8cfcd0d 100644
--- a/source/Camera.hpp
+++ b/source/Camera.hpp
@@ -6,16 +6,16 @@
class Camera {
public:
std::string name;
- glm::vec3 pos;
- glm::vec3 lookAt;
+ glm::vec3 eye;
+ glm::vec3 target;
bool perspective;
public:
Camera();
- void Move(glm::vec3 pos);
- void LookAtAngle(glm::vec3 lookVector);
- void LookAtPos(glm::vec3 pos);
+ void SetEyePos(glm::vec3 pos);
+ void SetTargetPos(glm::vec3 pos);
+ void SetTargetDirection(glm::vec3 lookVector);
bool HasPerspective() const { return perspective; }
void SetHasPerspective(bool perspective);