Commit ebf054b0 authored by Mike Kremer's avatar Mike Kremer

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 {
backFaceCulling_(false),
twoSidedLighting_(true),
multisampling_(true),
mipmapping_(true),
animation_(false),
glState_(0),
objectMarker_(0),
......
......@@ -325,7 +325,19 @@ namespace Viewer {
bool multisampling() { return multisampling_; };
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