diff -r 25b7c445cf61 -r 4e0955fca797 src/scene.h --- a/src/scene.h Mon Nov 26 17:31:37 2007 +0100 +++ b/src/scene.h Mon Nov 26 23:12:40 2007 +0100 @@ -24,6 +24,19 @@ o(ao), dir(adir) {}; }; +class Camera +{ +public: + Vector3 eye, p, u, v; + float f; + + Camera(): eye(0,0,10), p(0,0,-1), u(-1,0,0), v(0,1,0), f(3.14/4.0) {}; + Camera(const Vector3 &C, const Vector3 &ap, const Vector3 &au, const Vector3 &av): + eye(C), p(ap), u(au), v(av), f(3.14/4.0) {}; + void setEye(const Vector3 &aeye) { eye = aeye; }; + void setFocusLength(const float af) { f = af; }; +}; + /* axis-aligned bounding box */ class BBox {