summary refs log tree commit diff
path: root/src/GFX/Camera.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-10-21 01:03:18 +0200
committerMel <einebeere@gmail.com>2022-10-21 01:03:18 +0200
commit6ed978051668c08f5a957c97570f364dd580c807 (patch)
treee3db93c52fcd86e26bc859d46e755290d2a7f40c /src/GFX/Camera.hpp
parent0464a83dfaebaa75d6e2d3b7431e84ebd83fccfd (diff)
downloadmeowcraft-6ed978051668c08f5a957c97570f364dd580c807.tar.zst
meowcraft-6ed978051668c08f5a957c97570f364dd580c807.zip
Namespace and Folder refactor
Diffstat (limited to 'src/GFX/Camera.hpp')
-rw-r--r--src/GFX/Camera.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/GFX/Camera.hpp b/src/GFX/Camera.hpp
new file mode 100644
index 0000000..f03f009
--- /dev/null
+++ b/src/GFX/Camera.hpp
@@ -0,0 +1,26 @@
+#pragma once
+
+#include "../Math/Math.hpp"
+#include "../Math/Rotation.hpp"
+
+namespace MC::GFX {
+
+class Camera {
+public:
+    Camera() = default;
+
+    Vector<3> position();
+    void set_position(Vector<3> position);
+    void move(Vector<3> by);
+    void move_relative(Vector<3> by);
+
+    Rotation angles();
+    void set_angles(Rotation angles);
+    void rotate(Rotation by);
+
+private:
+    Vector<3> m_position = {};
+    Rotation m_angles = {};
+};
+
+}
\ No newline at end of file