Project

General

Profile

« Previous | Next » 

Revision 95593730

Added by Leszek Koltunski almost 8 years ago

Introduce ENUM EffectTypes

View differences:

src/main/java/org/distorted/examples/interpolator/InterpolatorRenderer.java
12 12

  
13 13
import org.distorted.library.DistortedBitmap;
14 14
import org.distorted.library.Distorted;
15
import org.distorted.library.EffectTypes;
15 16

  
16 17
///////////////////////////////////////////////////////////////////////////////////////////////////
17 18

  
......
65 66

  
66 67
   public void onSurfaceChanged(GL10 glUnused, int width, int height)
67 68
     {
68
     mBackground.abortAllEffects(Distorted.TYPE_PRE);
69
     mBackground.abortAllEffects(EffectTypes.MATRIX.type);
69 70
     mBackground.scale((float)width/texWidth,(float)height/texHeight,1);
70 71
     Distorted.onSurfaceChanged(width, height);
71 72
     InterpolatorSurfaceView.setScreenSize(width,height);

Also available in: Unified diff