X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fcamera.cc;fp=src%2Fcamera.cc;h=d7839b57322f0419c0b7b97e193458b299d25382;hb=826b0cf7adaf8b1dc4c37f57a4a98c79a3995e21;hp=0000000000000000000000000000000000000000;hpb=c47ed466e38c143cc9229c201d3bec42684ddd06;p=demo diff --git a/src/camera.cc b/src/camera.cc new file mode 100644 index 0000000..d7839b5 --- /dev/null +++ b/src/camera.cc @@ -0,0 +1,20 @@ +#include +#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