Revision d76638f1
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/examples/check/CheckRenderer.java | ||
---|---|---|
28 | 28 |
import org.distorted.examples.R; |
29 | 29 |
|
30 | 30 |
import org.distorted.library.effect.EffectName; |
31 |
import org.distorted.library.effect.EffectType; |
|
31 | 32 |
import org.distorted.library.effect.FragmentEffectChroma; |
32 | 33 |
import org.distorted.library.effect.MatrixEffectMove; |
33 | 34 |
import org.distorted.library.effect.MatrixEffectScale; |
... | ... | |
77 | 78 |
|
78 | 79 |
CheckActivity act = (CheckActivity)mView.getContext(); |
79 | 80 |
|
80 |
DistortedEffects.setMaxVertex(act.getMaxV());
|
|
81 |
DistortedEffects.setMaxFragment(act.getMaxF());
|
|
81 |
DistortedEffects.setMax(EffectType.VERTEX ,act.getMaxV());
|
|
82 |
DistortedEffects.setMax(EffectType.FRAGMENT,act.getMaxF());
|
|
82 | 83 |
DistortedEffects.enableEffect(EffectName.SWIRL); |
83 | 84 |
DistortedEffects.enableEffect(EffectName.DEFORM); |
84 | 85 |
DistortedEffects.enableEffect(EffectName.CHROMA); |
Also available in: Unified diff
Small API simplification.