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/scratchpad/ScratchpadRenderer.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

  
......
75 76

  
76 77
   public void onSurfaceChanged(GL10 glUnused, int width, int height)
77 78
     {
78
     mBackground.abortAllEffects(Distorted.TYPE_PRE);
79
     mBackground.abortAllEffects(EffectTypes.MATRIX.type);
79 80
     mBackground.scale((float)width/texWidth,(float)height/texHeight,1);
80 81
     Distorted.onSurfaceChanged(width,height);
81 82
     ScratchpadSurfaceView.setScreenSize(width,height);     

Also available in: Unified diff