summary refs log tree commit diff
path: root/src/Camera.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-10-04 01:18:19 +0200
committerMel <einebeere@gmail.com>2022-10-04 01:18:19 +0200
commit0631fb666d2a28a6eb9b8d1578675699b41a5de6 (patch)
tree1db9b88d9c11074864f6959d32960eb6c54d3c4b /src/Camera.hpp
parent75f3941579c756655fc7d4d29e7b92b6eae436b7 (diff)
downloadmeowcraft-0631fb666d2a28a6eb9b8d1578675699b41a5de6.tar.zst
meowcraft-0631fb666d2a28a6eb9b8d1578675699b41a5de6.zip
Cube Rendering
Diffstat (limited to 'src/Camera.hpp')
-rw-r--r--src/Camera.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Camera.hpp b/src/Camera.hpp
new file mode 100644
index 0000000..decba87
--- /dev/null
+++ b/src/Camera.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include "Math/Math.hpp"
+#include "Math/Rotation.hpp"
+
+namespace MC {
+
+class Camera {
+public:
+    Camera() = default;
+
+    Vector<3> position();
+    void set_position(Vector<3> position);
+    void move(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