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/movingeffects/MovingEffectsRenderer.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

  
......
80 81

  
81 82
   public void onSurfaceChanged(GL10 glUnused, int width, int height)
82 83
     {
83
     mBackground.abortAllEffects(Distorted.TYPE_PRE);
84
     mBackground.abortAllEffects(EffectTypes.MATRIX.type);
84 85
     mBackground.scale((float)width/texWidth,(float)height/texHeight,1);
85 86
   
86 87
     Distorted.onSurfaceChanged(width, height);

Also available in: Unified diff