]> git.localhorst.tv Git - blank.git/blobdiff - src/camera.hpp
place and remove blocks via mouse
[blank.git] / src / camera.hpp
index 7cdd5e527b1ca5ecc2e0c795dd5679907dd0d209..3adb800ce344b03da6a2261d5486c2ef4fd58365 100644 (file)
@@ -4,6 +4,7 @@
 #include <glm/glm.hpp>
 
 #include "controller.hpp"
+#include "geometry.hpp"
 
 
 namespace blank {
@@ -13,7 +14,6 @@ class Camera
 
 public:
        Camera();
-       ~Camera();
 
        Camera(const Camera &) = delete;
        Camera &operator =(const Camera &) = delete;
@@ -28,6 +28,8 @@ public:
        void Aspect(float w, float h);
        void Clip(float near, float far);
 
+       Ray Aim() const;
+
        const glm::mat4 &Projection() { return projection; }
        const glm::mat4 &View() { return view; }