Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
......@@ -70,6 +70,7 @@ namespace Viewer {
backFaceCulling_(false),
twoSidedLighting_(true),
multisampling_(true),
mipmapping_(true),
animation_(false),
glState_(0),
objectMarker_(0),
......
......@@ -329,6 +329,18 @@ namespace Viewer {
//===========================================================================
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_;
//===========================================================================
public slots:
/// set 2-sided lighting on/off
void animation(bool _state ) { animation_ = _state; emit updated(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment