Commit 68c00c8e authored by Mike Kremer's avatar Mike Kremer

Gui to enable/disable mipmapping

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9891 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ebf054b0
......@@ -184,7 +184,15 @@ void CoreWidget::updatePopupMenuCoordsysNode(QMenu* _menu , const int /*_part*/
multisampling->setCheckable( true );
multisampling->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"multiSampling.png") );
multisampling->setChecked( PluginFunctions::viewerProperties().multisampling() );
connect(multisampling, SIGNAL(triggered(bool)), this , SLOT( slotLocalChangeMultisampling(bool) ) );
connect(multisampling, SIGNAL(triggered(bool)), this , SLOT( slotLocalChangeMultisampling(bool) ) );
//====================================================================================================
QAction* mipmapping = renderingOptionsMenu->addAction(tr("Mipmapping"));
mipmapping->setToolTip(tr("Enable Mipmapping"));
mipmapping->setCheckable( true );
mipmapping->setChecked( PluginFunctions::viewerProperties().mipmapping() );
connect(mipmapping, SIGNAL(triggered(bool)), this , SLOT( slotLocalChangeMipmapping(bool) ) );
//============================================================================================================
......
......@@ -1020,10 +1020,13 @@ public:
/// Set Multisampling for all viewers
void slotGlobalChangeMultisampling(bool _lighting);
void slotGlobalChangeMultisampling(bool _multisampling);
/// Set Mipmapping for all viewers
void slotLocalChangeMipmapping(bool _mipmapping);
/// Set Multisampling for active viewer
void slotLocalChangeMultisampling(bool _lighting);
void slotLocalChangeMultisampling(bool _multisampling);
/// When using first person mode move backward
void moveBack();
......
......@@ -227,6 +227,11 @@ void CoreWidget::slotLocalChangeMultisampling(bool _multisampling) {
PluginFunctions::viewerProperties().multisampling( _multisampling );
}
/// Set Mipmapping for active viewer
void CoreWidget::slotLocalChangeMipmapping(bool _mipmapping) {
PluginFunctions::viewerProperties().mipmapping( _mipmapping );
}
/// Take a snapshot of the current Viewer
void CoreWidget::slotSnapshot() {
......
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