no clue :) just to push it
[demo] / src / camera.h
index 62120f1..0f70040 100644 (file)
@@ -9,7 +9,6 @@ public:
        virtual ~Camera();
 
        virtual Mat4 get_view_matrix() const = 0;
-       virtual void use() const;
 };
 
 class OrbitCamera : public Camera {
@@ -18,6 +17,8 @@ protected:
        float phi;
        float distance;
 
+       Vec3 position;
+
 public:
        OrbitCamera();
        virtual ~OrbitCamera();
@@ -25,8 +26,9 @@ public:
        virtual Mat4 get_view_matrix() const override;
 
        void set_orbit_params(float theta, float phi, float distance);
+       void set_position(float x, float y, float z);
 };
 
 Mat4 calc_projection_matrix(float fov_deg, float aspect, float n, float f);
 
-#endif // CAMERA_H_
\ No newline at end of file
+#endif // CAMERA_H_