Saxum/camera.hh

22 lines
503 B
C++
Raw Permalink Normal View History

2014-11-13 16:17:46 +00:00
#ifndef CAMERA_HH_INCLUDED
#define CAMERA_HH_INCLUDED
#include <ACGL/Math/Math.hh>
class Camera {
public:
Camera(glm::vec2 rotation, float distance);
2014-11-13 16:17:46 +00:00
Camera();
~Camera();
float getDistance();
void setDistance(float distance);
glm::vec2 getRotation();
void setRotation(glm::vec2 rotation);
void updateRotation(glm::vec2 rotation); //adds to current rotation
2014-11-13 16:17:46 +00:00
private:
float distance;
glm::vec2 rotation;
2014-11-13 16:17:46 +00:00
};
#endif