removed WalkerCamera from VulkanAppFramework.h

This commit is contained in:
hyzboy 2020-11-30 15:41:29 +08:00
parent a1573aa833
commit 0f85e6e7fb

View File

@ -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: