Revision 95593730
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/bean/BeanRenderer.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
import org.distorted.examples.R; |
11 | 11 |
|
12 |
import org.distorted.library.EffectTypes; |
|
12 | 13 |
import org.distorted.library.Interpolator2D; |
13 | 14 |
import org.distorted.library.Distorted; |
14 | 15 |
import org.distorted.library.DistortedBitmap; |
... | ... | |
83 | 84 |
|
84 | 85 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
85 | 86 |
{ |
86 |
mBean.abortAllEffects(Distorted.TYPE_PRE);
|
|
87 |
mBean.abortAllEffects(EffectTypes.MATRIX.type);
|
|
87 | 88 |
|
88 | 89 |
if( bmpHeight/bmpWidth > height/width ) |
89 | 90 |
{ |
Also available in: Unified diff
Introduce ENUM EffectTypes