removed WalkerCamera from VulkanAppFramework.h
This commit is contained in:
parent
a1573aa833
commit
0f85e6e7fb
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user