commit 3521c6fee37c3238d2ee9e45495defa9de5ca388
Author: leszek <leszek@koltunski.pl>
Date:   Tue Jun 27 00:02:20 2017 +0100

    move EffectQuality to the effect package.

diff --git a/src/main/java/org/distorted/library/effect/EffectName.java b/src/main/java/org/distorted/library/effect/EffectName.java
index cd3e2c8..9f1fa34 100644
--- a/src/main/java/org/distorted/library/effect/EffectName.java
+++ b/src/main/java/org/distorted/library/effect/EffectName.java
@@ -42,7 +42,7 @@ package org.distorted.library.effect;
 
 public enum EffectName
   {
-  // EFFECT NAME /////// EFFECT TYPE /////// EFFECT UNITY //////////// DIM // REGION // CENTER
+  // EFFECT NAME /////// EFFECT TYPE ////////// EFFECT UNITY //////////// DIM REGION CENTER
   ROTATE           ( EffectType.MATRIX  ,   new float[] {0.0f}           , 4, false, true  ),
   QUATERNION       ( EffectType.MATRIX  ,   new float[] {0.0f,0.0f,0.0f} , 4, false, true  ),
   MOVE             ( EffectType.MATRIX  ,   new float[] {0.0f,0.0f,0.0f} , 3, false, false ),
@@ -68,7 +68,7 @@ public enum EffectName
   SMOOTH_CONTRAST  ( EffectType.FRAGMENT,   new float[] {1.0f}           , 1, true , false ),
 
   BLUR             ( EffectType.POSTPROCESS,new float[] {0.0f}           , 1, false, false ),
-  GLOW             ( EffectType.POSTPROCESS,new float[] {0.0f}           , 1, false, false );
+  GLOW             ( EffectType.POSTPROCESS,new float[] {0.0f}           , 4, false, false );
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
diff --git a/src/main/java/org/distorted/library/effect/EffectQuality.java b/src/main/java/org/distorted/library/effect/EffectQuality.java
new file mode 100644
index 0000000..5e64be5
--- /dev/null
+++ b/src/main/java/org/distorted/library/effect/EffectQuality.java
@@ -0,0 +1,62 @@
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// Copyright 2016 Leszek Koltunski                                                               //
+//                                                                                               //
+// This file is part of Distorted.                                                               //
+//                                                                                               //
+// Distorted is free software: you can redistribute it and/or modify                             //
+// it under the terms of the GNU General Public License as published by                          //
+// the Free Software Foundation, either version 2 of the License, or                             //
+// (at your option) any later version.                                                           //
+//                                                                                               //
+// Distorted is distributed in the hope that it will be useful,                                  //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
+// GNU General Public License for more details.                                                  //
+//                                                                                               //
+// You should have received a copy of the GNU General Public License                             //
+// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+package org.distorted.library.effect;
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+import org.distorted.library.main.DistortedEffects;
+
+/**
+ * A list of quality levels.
+ * <p>
+ * One can set quality of a Postprocessing Effect to one of those. The lower the quality, the faster
+ * the rendering will be.
+ *
+ * @see DistortedEffects
+ */
+public enum EffectQuality
+  {
+  HIGHEST  ( 0 ),   // has to start from 0
+  HIGH     ( 1 ),
+  MEDIUM   ( 2 ),
+  LOW      ( 3 );
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+  public static final float MULTIPLIER = 0.5f;      // each next Quality level renders into 1/0.5 smaller buffers
+  public static final int LENGTH = values().length;
+
+  private final int level;
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+  EffectQuality(int level)
+    {
+    this.level = level;
+    }
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+  public int getLevel()
+    {
+    return level;
+    }
+  }
+
diff --git a/src/main/java/org/distorted/library/main/DistortedEffects.java b/src/main/java/org/distorted/library/main/DistortedEffects.java
index 4604395..5d1582b 100644
--- a/src/main/java/org/distorted/library/main/DistortedEffects.java
+++ b/src/main/java/org/distorted/library/main/DistortedEffects.java
@@ -25,6 +25,7 @@ import android.opengl.GLES30;
 import org.distorted.library.R;
 import org.distorted.library.effect.Effect;
 import org.distorted.library.effect.EffectName;
+import org.distorted.library.effect.EffectQuality;
 import org.distorted.library.effect.EffectType;
 import org.distorted.library.effect.FragmentEffect;
 import org.distorted.library.effect.VertexEffect;
@@ -305,7 +306,7 @@ public class DistortedEffects implements DistortedSlave
         case MIPMAP: int level = job.level;
                      mP.mQualityLevel = level;
                      mP.mQualityScale = 1.0f;
-                     for(int j=0; j<level; j++) mP.mQualityScale*=EffectQuality.MULTIPLIER;
+                     for(int j=0; j<level; j++) mP.mQualityScale*= EffectQuality.MULTIPLIER;
                      break;
         }
       }
@@ -638,7 +639,7 @@ public class DistortedEffects implements DistortedSlave
  */
   public void setPostprocessingQuality(EffectQuality quality)
     {
-    mJobs.add(new Job(MIPMAP,quality.level));
+    mJobs.add(new Job(MIPMAP,quality.getLevel()));
     DistortedMaster.newSlave(this);
     }
 
diff --git a/src/main/java/org/distorted/library/main/DistortedOutputSurface.java b/src/main/java/org/distorted/library/main/DistortedOutputSurface.java
index d77d3c0..a21ac17 100644
--- a/src/main/java/org/distorted/library/main/DistortedOutputSurface.java
+++ b/src/main/java/org/distorted/library/main/DistortedOutputSurface.java
@@ -22,6 +22,8 @@ package org.distorted.library.main;
 import android.opengl.GLES30;
 import android.opengl.Matrix;
 
+import org.distorted.library.effect.EffectQuality;
+
 import java.util.ArrayList;
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/main/java/org/distorted/library/main/EffectQuality.java b/src/main/java/org/distorted/library/main/EffectQuality.java
deleted file mode 100644
index 23085cc..0000000
--- a/src/main/java/org/distorted/library/main/EffectQuality.java
+++ /dev/null
@@ -1,50 +0,0 @@
-///////////////////////////////////////////////////////////////////////////////////////////////////
-// Copyright 2016 Leszek Koltunski                                                               //
-//                                                                                               //
-// This file is part of Distorted.                                                               //
-//                                                                                               //
-// Distorted is free software: you can redistribute it and/or modify                             //
-// it under the terms of the GNU General Public License as published by                          //
-// the Free Software Foundation, either version 2 of the License, or                             //
-// (at your option) any later version.                                                           //
-//                                                                                               //
-// Distorted is distributed in the hope that it will be useful,                                  //
-// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
-// GNU General Public License for more details.                                                  //
-//                                                                                               //
-// You should have received a copy of the GNU General Public License                             //
-// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
-///////////////////////////////////////////////////////////////////////////////////////////////////
-
-package org.distorted.library.main;
-
-///////////////////////////////////////////////////////////////////////////////////////////////////
-/**
- * A list of quality levels.
- * <p>
- * One can set quality of a Postprocessing Effect to one of those. The lower the quality, the faster
- * the rendering will be.
- *
- * @see DistortedEffectsPostprocess
- */
-public enum EffectQuality
-  {
-  HIGHEST  ( 0 ),   // has to start from 0
-  HIGH     ( 1 ),
-  MEDIUM   ( 2 ),
-  LOW      ( 3 );
-
-///////////////////////////////////////////////////////////////////////////////////////////////////
-
-  final static float MULTIPLIER = 0.5f;      // each next Quality level renders into 1/0.5 smaller buffers
-  final static int LENGTH = values().length;
-
-  final int level;
-
-  EffectQuality(int level)
-    {
-    this.level = level;
-    }
-  }
-
