123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef DEF_CAMERA
- #define DEF_CAMERA
- // Includes GLM
- #include <glm.hpp>
- #include <gtx/transform.hpp>
- #include <gtc/type_ptr.hpp>
- // Autres includes
- #include "Input.h"
- // Classe
- class Camera
- {
- public:
- Camera();
- Camera(glm::vec3 position, glm::vec3 pointCible, glm::vec3 axeVertical, float sensibilite, float vitesse);
- ~Camera();
- void orienter(int xRel, int yRel);
- void deplacer(Input const &input);
- void lookAt(glm::mat4 &modelview);
- void setPointcible(glm::vec3 pointCible);
- void setPosition(glm::vec3 position);
- float getSensibilite() const;
- float getVitesse() const;
- void setSensibilite(float sensibilite);
- void setVitesse(float vitesse);
- private:
- float m_phi;
- float m_theta;
- glm::vec3 m_orientation;
- glm::vec3 m_axeVertical;
- glm::vec3 m_deplacementLateral;
- glm::vec3 m_position;
- glm::vec3 m_pointCible;
- float m_sensibilite;
- float m_vitesse;
- };
- #endif
|