diff options
Diffstat (limited to 'src/QGLView.h')
-rw-r--r-- | src/QGLView.h | 7 |
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); |