summaryrefslogtreecommitdiff
path: root/src/OffscreenView.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-02-27 06:37:37 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-02-27 06:37:37 (GMT)
commit13b0fe4b3f8e0367f02a982deb5be695ccd00c80 (patch)
treef834a15d8ed4d37f23882ff60a2e2c08ea4f53f2 /src/OffscreenView.cc
parentc84b0d21842cbd09a46c80e23a2f1a3fc2a04592 (diff)
rework Camera using boost::variant. first working --gimbalcam version
Diffstat (limited to 'src/OffscreenView.cc')
-rw-r--r--src/OffscreenView.cc39
1 files changed, 3 insertions, 36 deletions
diff --git a/src/OffscreenView.cc b/src/OffscreenView.cc
index 9d7584e..b09d80e 100644
--- a/src/OffscreenView.cc
+++ b/src/OffscreenView.cc
@@ -27,43 +27,10 @@ void OffscreenView::display_opencsg_warning()
}
#endif
-void OffscreenView::paintGL()
+/*void OffscreenView::paintGL()
{
- glEnable(GL_LIGHTING);
-
- if (orthomode) setupVectorCamOrtho();
- else setupVectorCamPerspective();
-
- glMatrixMode(GL_MODELVIEW);
- glLoadIdentity();
-
- glClearColor(1.0f, 1.0f, 0.92f, 1.0f);
-
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
-
- gluLookAt(vcam.eye[0], vcam.eye[1], vcam.eye[2],
- vcam.center[0], vcam.center[1], vcam.center[2],
- 0.0, 0.0, 1.0);
-
- // fixme - showcrosshairs doesnt work with vector camera
- // if (showcrosshairs) GLView::showCrosshairs();
-
- if (showaxes) GLView::showAxes();
-
- glDepthFunc(GL_LESS);
- glCullFace(GL_BACK);
- glDisable(GL_CULL_FACE);
-
- glLineWidth(2);
- glColor3d(1.0, 0.0, 0.0);
-
- //FIXME showSmallAxes wont work with vector camera
- //if (showaxes) GLView::showSmallaxes();
-
- if (this->renderer) {
- this->renderer->draw(showfaces, showedges);
- }
-}
+ GLView::vectorCamPaintGL();
+}*/
bool OffscreenView::save(const char *filename)
{
contact: Jan Huwald // Impressum