VideoCommon: Use freelook field of view to change the perspective of the camera

This commit is contained in:
iwubcode
2020-05-18 17:22:41 -05:00
parent 98de22a1e6
commit 3d7d4dfc8a
3 changed files with 39 additions and 6 deletions

View File

@ -43,6 +43,7 @@ class FreeLookCamera
public:
void SetControlType(FreelookControlType type);
Common::Matrix44 GetView();
Common::Vec2 GetFieldOfView() const;
void MoveVertical(float amt);
void MoveHorizontal(float amt);
@ -51,6 +52,9 @@ public:
void Rotate(const Common::Vec3& amt);
void IncreaseFovX(float fov);
void IncreaseFovY(float fov);
void Reset();
void DoState(PointerWrap& p);
@ -60,6 +64,8 @@ public:
private:
bool m_dirty = false;
float m_fov_x = 1.0f;
float m_fov_y = 1.0f;
std::optional<FreelookControlType> m_current_type;
std::unique_ptr<CameraController> m_camera_controller;
};