summaryrefslogtreecommitdiff
path: root/src/GLView.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-03 16:52:25 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-03 16:52:25 (GMT)
commit2b2dc7a078e92193f0d27d901d3a1b4af9f5a1d9 (patch)
treed8c6600a1232e137833b6087a83531edca0af1dc /src/GLView.h
parentbfae32fe9909446cb4254fc5a5d953227736575a (diff)
make Camera into single class, simplify code
Diffstat (limited to 'src/GLView.h')
-rw-r--r--src/GLView.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/GLView.h b/src/GLView.h
index dae402a..e06296b 100644
--- a/src/GLView.h
+++ b/src/GLView.h
@@ -8,18 +8,12 @@ This class is inherited by:
*QGLview - for Qt GUI
*OffscreenView - for offscreen rendering, in tests and from command-line
-There are two different types of cameras:
+The view assumes either a Gimbal Camera (rotation,translation,distance)
+or Vector Camera (eye,center/target) is being used. See Camera.h. The
+cameras are not kept in sync.
-*Gimbal camera - uses Euler Angles, object translation, and viewer distance
-*Vector camera - uses 'eye', 'center', and 'up' vectors ('lookat' style)
-
-They are selectable by creating a GimbalCamera or VectorCamera (Camera.h)
-and then calling GLView.setCamera().
-
-Currently, the camera is set in two separate variables that are not kept
-in sync. Some actions (showCrossHairs) only work properly on Gimbal
-Camera. QGLView uses GimbalCamera while OffscreenView can use either one
-(defaulting to Vector).
+QGLView only uses GimbalCamera while OffscreenView can use either one.
+Some actions (showCrossHairs) only work properly on Gimbal Camera.
*/
@@ -73,9 +67,7 @@ public:
bool showedges;
bool showcrosshairs;
- Camera::CameraType camtype;
- VectorCamera vcam;
- GimbalCamera gcam;
+ Camera cam;
#ifdef ENABLE_OPENCSG
GLint shaderinfo[11];
contact: Jan Huwald // Impressum