diff options
author | rtk0c <[email protected]> | 2022-06-03 23:30:01 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-06-03 23:30:01 -0700 |
commit | 791b3f354b378769bffe623b05f1305c91b77101 (patch) | |
tree | 5409b311e6232eb4a6d3f8259b780d76b8ee1c59 /source/Game/Camera.hpp | |
parent | 60ccc62f4934e44ad5b905fdbcf458302b8d8a09 (diff) |
Changeset: 64 [WIP] Rename directoriesmaster-switch-to-build2
Diffstat (limited to 'source/Game/Camera.hpp')
-rw-r--r-- | source/Game/Camera.hpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/source/Game/Camera.hpp b/source/Game/Camera.hpp deleted file mode 100644 index 7bf0a6c..0000000 --- a/source/Game/Camera.hpp +++ /dev/null @@ -1,35 +0,0 @@ -#pragma once - -#include <glm/glm.hpp> -#include <string> - -class Camera { -public: - std::string name; - glm::vec3 eye; - glm::vec3 target; - - // --- Orthographic settings --- - float pixelsPerMeter; - // --- Orthographic settings --- - - // ---- Perspective settings --- - /// In radians - float fov; - // ---- Perspective settings --- - - bool perspective; - -public: - Camera(); - - void SetEyePos(glm::vec3 pos); - void SetTargetPos(glm::vec3 pos); - void SetTargetDirection(glm::vec3 lookVector); - - bool HasPerspective() const { return perspective; } - void SetHasPerspective(bool perspective); - - glm::mat4 CalcViewMatrix() const; - glm::mat4 CalcProjectionMatrix() const; -}; |