mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
VideoCommon: Use freelook field of view to change the perspective of the camera
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user