summaryrefslogtreecommitdiff
path: root/src/QGLView.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-03 19:48:23 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-03 19:48:23 (GMT)
commit58de93af95d6fdd1c7434e771f126f34c4c43bd3 (patch)
tree0b0388bbb79da5741a401b35fb305583213afd9d /src/QGLView.h
parent3f345b936192d02b821b6d297ce60203f116ad4d (diff)
add --projection=ortho|perspective option to cmdline
Diffstat (limited to 'src/QGLView.h')
-rw-r--r--src/QGLView.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/QGLView.h b/src/QGLView.h
index 4192a06..f3e3681 100644
--- a/src/QGLView.h
+++ b/src/QGLView.h
@@ -34,8 +34,11 @@ public:
void setShowAxes(bool enabled) { this->showaxes = enabled; }
bool showCrosshairs() const { return this->showcrosshairs; }
void setShowCrosshairs(bool enabled) { this->showcrosshairs = enabled; }
- bool orthoMode() const { return this->orthomode; }
- void setOrthoMode(bool enabled) { this->orthomode = enabled; }
+ bool orthoMode() const { return (this->cam.projection == Camera::ORTHOGONAL); }
+ void setOrthoMode(bool enabled) {
+ if (enabled) this->cam.projection = Camera::ORTHOGONAL;
+ else this->cam.projection = Camera::PERSPECTIVE;
+ }
std::string getRendererInfo() const;
bool save(const char *filename);
contact: Jan Huwald // Impressum