You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
380 B

5 years ago
  1. #pragma once
  2. #include "vector3.h"
  3. class Camera {
  4. public:
  5. Camera();
  6. Vector3f mPos, mViewCenter, mUp;
  7. bool mbMoveLeft, mbMoveRight, mbMoveForward, mbMoveBack;
  8. int mViewportWidth, mViewportHeight;
  9. void Update(float deltaTime);
  10. void Picth(float angle);
  11. void Yaw(float angle);
  12. void RotateView(float angle, float x, float y, float z);
  13. void SwitchTo3D();
  14. void SwitchTo2D();
  15. };