diff options
author | Marius Kintel <marius@kintel.net> | 2011-07-23 19:57:43 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-07-23 19:57:43 (GMT) |
commit | 2ca031691403e5863636104a675c34613c7bb0bc (patch) | |
tree | cfc10bcaa6e056e3da1f8bc61eea75d72fa30aca /src/GLView.h | |
parent | 639c55c07a10d4cf6be352cdcb2c36ac3e784d59 (diff) | |
parent | a878f3773d4c2647451ec93a85203ce906e13e2d (diff) |
Merge branch 'glview-refactor' of gitorious.org:openscad/openscad into gitorious/glview-refactor
Diffstat (limited to 'src/GLView.h')
-rw-r--r-- | src/GLView.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/GLView.h b/src/GLView.h index 7516894..be21578 100644 --- a/src/GLView.h +++ b/src/GLView.h @@ -57,8 +57,7 @@ private: double w_h_ratio; bool mouse_drag_active; - int last_mouse_x; - int last_mouse_y; + QPoint last_mouse; void keyPressEvent(QKeyEvent *event); void wheelEvent(QWheelEvent *event); @@ -68,7 +67,10 @@ private: void initializeGL(); void resizeGL(int w, int h); + void setupPerspective(); + void setupOrtho(double distance,bool offset=false); void paintGL(); + void normalizeAngle(GLdouble& angle); #ifdef ENABLE_OPENCSG private slots: |