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/dynamic/DynamicRenderer.java
31 31

  
32 32
import org.distorted.library.DistortedEffects;
33 33
import org.distorted.library.DistortedFramebuffer;
34
import org.distorted.library.GridFlat;
34
import org.distorted.library.MeshFlat;
35 35
import org.distorted.library.DistortedTexture;
36 36
import org.distorted.library.Distorted;
37 37

  
......
43 43
   private DistortedTexture mTexture;
44 44
   private DistortedEffects mEffects;
45 45
   private DistortedFramebuffer mScreen;
46
   private GridFlat mGrid;
46
   private MeshFlat mMesh;
47 47
   private Canvas mCanvas;
48 48
   private Bitmap mBitmap;
49 49
   private Paint mPaint;
......
61 61
     mPaint.setStyle(Style.FILL);
62 62
      
63 63
     mView   = v;
64
     mGrid   = new GridFlat(1,1);
64
     mMesh = new MeshFlat(1,1);
65 65
     mEffects = new DistortedEffects();
66 66
     mScreen = new DistortedFramebuffer(0);
67 67
     }
......
106 106
     mCanvas.drawRect(0, 0, texW, texH, mPaint);
107 107
     mView.drawCurve(mCanvas,time);
108 108
     mTexture.setTexture(mBitmap);
109
     mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
109
     mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
110 110
     }
111 111

  
112 112
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff