Commit 3b31b7f3 authored by Jan Möbius's avatar Jan Möbius
Browse files

Removed old set stereo function from viewers, as this is now handled via the properties

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15946 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 15fa1db7
......@@ -78,7 +78,7 @@ void CoreWidget::slotToggleStereoMode()
cursorPainter_->setEnabled (stereoActive_);
for ( unsigned int i = 0 ; i < OpenFlipper::Options::examinerWidgets() ; ++i )
examiner_widgets_[i]->setStereoMode(stereoActive_);
examiner_widgets_[i]->properties()->stereo(stereoActive_);
}
void CoreWidget::slotSetGlobalBackgroundColor() {
......
......@@ -1953,6 +1953,14 @@ void glViewer::applyProperties() {
else
ACG::GLState::disable( GL_CULL_FACE );
// Make sure the right buffer is used in non stereo setup
if (! properties_.stereo()) {
makeCurrent();
ACG::GLState::drawBuffer(GL_BACK);
}
// Required for stereo toggling
updateProjectionMatrix ();
}
void glViewer::slotPropertiesUpdated() {
......
......@@ -644,11 +644,6 @@ private:
* @{ */
//===========================================================================
public slots:
/// enable/disable stereo mode
virtual void setStereoMode(bool _b);
private:
/// helper called by drawScene() when stereo viewing is active.
......
......@@ -87,25 +87,6 @@ static const char* customAnaglyphProg = {
//-----------------------------------------------------------------------------
void
glViewer::setStereoMode(bool _b)
{
properties_.stereo(_b);
if (! properties_.stereo()) {
makeCurrent();
ACG::GLState::drawBuffer(GL_BACK);
}
updateProjectionMatrix ();
updateGL();
}
//-----------------------------------------------------------------------------
void
glViewer::drawScene_glStereo()
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment