X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fcamera.cc;fp=src%2Fcamera.cc;h=d7839b57322f0419c0b7b97e193458b299d25382;hb=f906c6d5d6b93dcc4c0f3d54e679cf86c829b91e;hp=0000000000000000000000000000000000000000;hpb=4081e0e8f0f391aa25d67b73c45e73ccacff0f00;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