backup some changes:
[demo] / src / camera.cc
diff --git a/src/camera.cc b/src/camera.cc
new file mode 100644 (file)
index 0000000..d7839b5
--- /dev/null
@@ -0,0 +1,20 @@
+#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