X-Git-Url: https://eleni.mutantstargoat.com/git/?p=vkrt;a=blobdiff_plain;f=src%2Fcamera.h;fp=src%2Fcamera.h;h=0000000000000000000000000000000000000000;hp=0f70040c991c42bf2d4fa2695909cf9713ce6411;hb=638b86fbbdb0307faf21c04532d8f5ceb3b29884;hpb=c7de7f04077b07757ffef63ce6771a9d561945d5 diff --git a/src/camera.h b/src/camera.h deleted file mode 100644 index 0f70040..0000000 --- a/src/camera.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef CAMERA_H_ -#define CAMERA_H_ - -#include - -class Camera { -public: - Camera(); - virtual ~Camera(); - - virtual Mat4 get_view_matrix() const = 0; -}; - -class OrbitCamera : public Camera { -protected: - float theta; - float phi; - float distance; - - Vec3 position; - -public: - OrbitCamera(); - virtual ~OrbitCamera(); - - 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_