diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-03-03 19:48:23 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-03-03 19:48:23 (GMT) |
commit | 58de93af95d6fdd1c7434e771f126f34c4c43bd3 (patch) | |
tree | 0b0388bbb79da5741a401b35fb305583213afd9d /src/Camera.h | |
parent | 3f345b936192d02b821b6d297ce60203f116ad4d (diff) |
add --projection=ortho|perspective option to cmdline
Diffstat (limited to 'src/Camera.h')
-rw-r--r-- | src/Camera.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Camera.h b/src/Camera.h index f7cd257..87b5e83 100644 --- a/src/Camera.h +++ b/src/Camera.h @@ -12,6 +12,8 @@ There are two different types of cameras represented in this class: *Gimbal camera - uses Euler Angles, object translation, and viewer distance *Vector camera - uses 'eye', 'center', and 'up' vectors ('lookat' style) +There are two modes of projection, Perspective and Orthogonal. + */ #include <vector> @@ -21,8 +23,10 @@ class Camera { public: enum CameraType { NONE, GIMBAL, VECTOR } type; + enum ProjectionType { ORTHOGONAL, PERSPECTIVE } projection; Camera() { type = Camera::NONE; + projection = Camera::PERSPECTIVE; } Camera( enum CameraType e ) { @@ -38,6 +42,7 @@ public: } pixel_width = 512; pixel_height = 512; + projection = Camera::PERSPECTIVE; } void setup( std::vector<double> params ) { |