Commit ebf054b0 authored by Mike Kremer's avatar Mike Kremer
Browse files

Enable or disable mipmapping globally via viewerproperties

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9890 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 208cdfca
...@@ -70,6 +70,7 @@ namespace Viewer { ...@@ -70,6 +70,7 @@ namespace Viewer {
backFaceCulling_(false), backFaceCulling_(false),
twoSidedLighting_(true), twoSidedLighting_(true),
multisampling_(true), multisampling_(true),
mipmapping_(true),
animation_(false), animation_(false),
glState_(0), glState_(0),
objectMarker_(0), objectMarker_(0),
......
...@@ -325,7 +325,19 @@ namespace Viewer { ...@@ -325,7 +325,19 @@ namespace Viewer {
bool multisampling() { return multisampling_; }; bool multisampling() { return multisampling_; };
private: private:
bool multisampling_; bool multisampling_;
//===========================================================================
public slots:
/// set mipmapping on/off
void mipmapping(bool _state ) { glState_->allow_mipmapping(_state); mipmapping_ = _state; emit updated(); }
/// is mipmapping enabled?
bool mipmapping() { return mipmapping_; };
private:
bool mipmapping_;
//=========================================================================== //===========================================================================
......
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