diff --git a/example/common/VulkanAppFramework.h b/example/common/VulkanAppFramework.h index dfb70b40..b1d92fea 100644 --- a/example/common/VulkanAppFramework.h +++ b/example/common/VulkanAppFramework.h @@ -296,74 +296,6 @@ public: } };//class VulkanApplicationFramework -class WalkerCamera:public Camera -{ -public: - - using Camera::Camera; - virtual ~WalkerCamera()=default; - - void ComputeViewMatrix() override - { - matrix.view=lookat(pos,target,world_up); - } - -public: - - /** - * 向前移动指定距离(延视线) - */ - virtual void Backward(const float move_length) - { - Move(camera_direction*move_length/view_distance.y); - } - - /** - * 向后移动指定距离(延视线) - */ - virtual void Forward(const float move_length){Backward(-move_length);} - - /** - * 向上移动指定距离(和视线垂直90度) - */ - virtual void Up(const float move_length) - { - Move(camera_up*move_length/view_distance.z); - } - - /** - * 向下移动指定距离(和视线垂直90度) - */ - virtual void Down(const float move_length){Up(-move_length);} - - virtual void Left(const float move_length) - { - Move(camera_right*move_length/view_distance.x); - } - - virtual void Right(const float move_length){Left(-move_length);} - - virtual void HoriRotate(const float ang) - { - Rotate(ang,camera_up); - } - - virtual void VertRotate(const float ang) - { - Rotate(ang,camera_right); - } - - virtual void WrapHoriRotate(const float ang) - { - WrapRotate(ang,camera_up); - } - - virtual void WrapVertRotate(const float ang) - { - WrapRotate(ang,camera_right); - } -};//class WalkerCamera:public Camera - class CameraAppFramework:public VulkanApplicationFramework { private: