Project

General

Profile

« Previous | Next » 

Revision b01acdaf

Added by Leszek Koltunski over 7 years ago

Rename Grid to Mesh

View differences:

src/main/java/org/distorted/examples/differentbitmaps/DifferentBitmapsRenderer.java
31 31
import org.distorted.library.DistortedFramebuffer;
32 32
import org.distorted.library.DistortedTexture;
33 33
import org.distorted.library.DistortedEffects;
34
import org.distorted.library.GridFlat;
34
import org.distorted.library.MeshFlat;
35 35
import org.distorted.library.EffectTypes;
36 36
import org.distorted.library.type.Dynamic3D;
37 37
import org.distorted.library.type.Static1D;
......
52 52
   private GLSurfaceView mView;
53 53
   private DistortedTexture[] mTexture;
54 54
   private DistortedEffects[] mEffects;
55
   private GridFlat mGrid;
55
   private MeshFlat mMesh;
56 56
   private DistortedFramebuffer mScreen;
57 57
   private int bmpHeight, bmpWidth;
58 58
    
......
111 111
      
112 112
      long time = System.currentTimeMillis();
113 113
      
114
      for(int i=NUM-1; i>=0; i--) mScreen.renderTo(mTexture[i], mGrid, mEffects[i], time);
114
      for(int i=NUM-1; i>=0; i--) mScreen.renderTo(mTexture[i], mMesh, mEffects[i], time);
115 115
      }
116 116

  
117 117
///////////////////////////////////////////////////////////////////////////////////////////////////
......
171 171
      mTexture[1].setTexture(bitmap1);
172 172
      mTexture[2].setTexture(bitmap2);
173 173

  
174
      mGrid = new GridFlat(30,30*bmpHeight/bmpWidth);
174
      mMesh = new MeshFlat(30,30*bmpHeight/bmpWidth);
175 175

  
176 176
      try
177 177
        {

Also available in: Unified diff