- camera class
- mouse/motion glfw callbacks
--- /dev/null
+#include <gmath/gmath.h>
+#include "camera.h"
+
+Camera::Camera()
+{
+ phi = theta = distance = 0;
+ fov = 0;
+ m_projection = Mat4::identity;
+}
+
+Camera::Camera(float phi, float theta, float distance, float fov)
+{
+ this->phi = phi;
+ this->theta = theta;
+ this->distance = distance;
+
+ this->fov = fov;
+}
+
+Camera::~Camera() {}
\ No newline at end of file
--- /dev/null
+#ifndef CAMERA_H_
+#define CAMERA_H_
+
+#include <gmath/gmath.h>
+
+class Camera {
+public:
+ float phi;
+ float theta;
+ float distance;
+
+ Mat4 m_projection;
+ float fov;
+
+ Camera();
+ Camera(float phi, float theta, float distance, float fov);
+ ~Camera();
+};
+
+#endif // CAMERA_H_
\ No newline at end of file