diff options
author | rtk0c <[email protected]> | 2023-10-19 22:50:07 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2023-10-19 22:50:07 -0700 |
commit | 2c92e07f337e42cf58970443f9de678f85a9b2a4 (patch) | |
tree | 075d5407e1e12a9d35cbee6e4c20ad34e0765c42 /source/30-game/Camera.hpp | |
parent | 615809c036f604bce4582cea8ad49c64693f4f45 (diff) |
The great renaming: switch to "module style"
Diffstat (limited to 'source/30-game/Camera.hpp')
-rw-r--r-- | source/30-game/Camera.hpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/source/30-game/Camera.hpp b/source/30-game/Camera.hpp deleted file mode 100644 index 7bf0a6c..0000000 --- a/source/30-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; -}; |