Camera.h 570 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // Created by jovian on 18/08/17.
  3. //
  4. #ifndef SPACEEXPANSION_CAMERA_H
  5. #define SPACEEXPANSION_CAMERA_H
  6. #include "Input.h"
  7. #include "../Maths/b2_math.h"
  8. class Camera {
  9. // Methods
  10. public:
  11. Camera();
  12. virtual ~Camera();
  13. void refresh(Input *input);
  14. bool getInfoWanted() const;
  15. const b2Vec2 &getPos() const;
  16. const b2Vec2 &getCursorPos() const;
  17. float getZoom() const;
  18. // Attributes
  19. private:
  20. b2Vec2 m_pos;
  21. b2Vec2 m_cursorPos;
  22. float m_zoom;
  23. bool m_press;
  24. bool m_infoWanted;
  25. };
  26. #endif //SPACEEXPANSION_CAMERA_H