Project

General

Profile

« Previous | Next » 

Revision 5601cfa6

Added by Leszek Koltunski almost 4 years ago

Convert the last app, EffectQueue, to stretchless API.

View differences:

src/main/java/org/distorted/examples/effectqueue/EffectQueueActivity.java
22 22
import org.distorted.library.effect.Effect;
23 23
import org.distorted.library.effect.EffectName;
24 24
import org.distorted.library.effect.EffectType;
25
import org.distorted.library.main.DistortedEffects;
25 26
import org.distorted.library.main.DistortedLibrary;
26 27
import org.distorted.examples.R;
27 28

  
......
38 39
import android.widget.Toast;
39 40

  
40 41
import java.util.ArrayList;
41
import java.util.HashMap;
42 42

  
43 43
///////////////////////////////////////////////////////////////////////////////////////////////////
44 44

  
......
50 50
  private int mPosID, mPosName, mPosType;
51 51
  private TableLayout mLayoutList;
52 52

  
53
  private class EffectRow
53
  private static class EffectRow
54 54
    {
55 55
    Effect effect;
56 56
    TableRow row;
......
267 267
      }
268 268

  
269 269
    EffectQueueSurfaceView v = findViewById(R.id.effects2dSurfaceView);
270
    v.getRenderer().getEffects().abortByType(type);
270

  
271
    DistortedEffects effects = v.getRenderer().getEffects();
272
    effects.abortByType(type);
271 273
    }
272 274

  
273 275
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff