diff options
author | rtk0c <[email protected]> | 2022-05-07 23:13:14 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-07 23:13:14 -0700 |
commit | daca3ada37d885b197d6fa810b6b793f18f8068e (patch) | |
tree | 6b7bb160352fc86aa0822bd05e193bff72ebf7c7 /source/Camera.hpp | |
parent | 0816a885c85eebe70d8a3b72c5bf12d56d4b9bff (diff) |
Changeset: 28 Add more camera controls (3D mode, scroll scaling)
Diffstat (limited to 'source/Camera.hpp')
-rw-r--r-- | source/Camera.hpp | 10 |
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); |