Project

General

Profile

« Previous | Next » 

Revision 3521c6fe

Added by Leszek Koltunski almost 7 years ago

move EffectQuality to the effect package.

View differences:

src/main/java/org/distorted/library/main/DistortedEffects.java
25 25
import org.distorted.library.R;
26 26
import org.distorted.library.effect.Effect;
27 27
import org.distorted.library.effect.EffectName;
28
import org.distorted.library.effect.EffectQuality;
28 29
import org.distorted.library.effect.EffectType;
29 30
import org.distorted.library.effect.FragmentEffect;
30 31
import org.distorted.library.effect.VertexEffect;
......
305 306
        case MIPMAP: int level = job.level;
306 307
                     mP.mQualityLevel = level;
307 308
                     mP.mQualityScale = 1.0f;
308
                     for(int j=0; j<level; j++) mP.mQualityScale*=EffectQuality.MULTIPLIER;
309
                     for(int j=0; j<level; j++) mP.mQualityScale*= EffectQuality.MULTIPLIER;
309 310
                     break;
310 311
        }
311 312
      }
......
638 639
 */
639 640
  public void setPostprocessingQuality(EffectQuality quality)
640 641
    {
641
    mJobs.add(new Job(MIPMAP,quality.level));
642
    mJobs.add(new Job(MIPMAP,quality.getLevel()));
642 643
    DistortedMaster.newSlave(this);
643 644
    }
644 645

  

Also available in: Unified diff