Project

General

Profile

« Previous | Next » 

Revision d04a4886

Added by Leszek Koltunski over 7 years ago

Change of names.

View differences:

src/main/java/org/distorted/examples/differentbitmaps/DifferentBitmapsRenderer.java
30 30
import org.distorted.library.Distorted;
31 31
import org.distorted.library.DistortedFramebuffer;
32 32
import org.distorted.library.DistortedTexture;
33
import org.distorted.library.DistortedEffectQueues;
33
import org.distorted.library.DistortedEffects;
34 34
import org.distorted.library.GridFlat;
35 35
import org.distorted.library.EffectTypes;
36 36
import org.distorted.library.type.Dynamic3D;
......
51 51
   
52 52
   private GLSurfaceView mView;
53 53
   private DistortedTexture[] mTexture;
54
   private DistortedEffectQueues[] mEffects;
54
   private DistortedEffects[] mEffects;
55 55
   private GridFlat mGrid;
56 56
   private DistortedFramebuffer mScreen;
57 57
   private int bmpHeight, bmpWidth;
......
67 67
      dDistort.add(new Static3D(-25,0,0));
68 68
      Static3D mPoint = new Static3D(305, 380, 0);
69 69

  
70
      mEffects = new DistortedEffectQueues[NUM];
71
      mEffects[0] = new DistortedEffectQueues();
70
      mEffects = new DistortedEffects[NUM];
71
      mEffects[0] = new DistortedEffects();
72 72
      for(int i=1; i<NUM; i++)
73
        mEffects[i] = new DistortedEffectQueues(mEffects[0], Distorted.CLONE_VERTEX|Distorted.CLONE_FRAGMENT);
73
        mEffects[i] = new DistortedEffects(mEffects[0], Distorted.CLONE_VERTEX|Distorted.CLONE_FRAGMENT);
74 74

  
75 75
      // Add the effects only to the first queue - all VERTEX and FRAGMENT effects are shared!
76 76
      // (Matrix effect cannot be shared as we have to display each Texture in a different location)

Also available in: Unified diff