Revision b01acdaf
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/movingeffects/MovingEffectsRenderer.java | ||
---|---|---|
32 | 32 |
import org.distorted.library.DistortedFramebuffer; |
33 | 33 |
import org.distorted.library.DistortedTexture; |
34 | 34 |
import org.distorted.library.DistortedEffects; |
35 |
import org.distorted.library.GridFlat;
|
|
35 |
import org.distorted.library.MeshFlat;
|
|
36 | 36 |
import org.distorted.library.Distorted; |
37 | 37 |
|
38 | 38 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
45 | 45 |
private Paint mPaint; |
46 | 46 |
private int texW, texH; |
47 | 47 |
|
48 |
private GridFlat mGrid;
|
|
48 |
private MeshFlat mMesh;
|
|
49 | 49 |
private DistortedEffects mEffects; |
50 | 50 |
private DistortedTexture mTexture; |
51 | 51 |
private DistortedFramebuffer mScreen; |
... | ... | |
126 | 126 |
texW = width; |
127 | 127 |
texH = height; |
128 | 128 |
|
129 |
mGrid = new GridFlat(80,80*texH/texW);
|
|
129 |
mMesh = new MeshFlat(80,80*texH/texW);
|
|
130 | 130 |
mTexture = new DistortedTexture(texW,texH); |
131 | 131 |
mBitmap = Bitmap.createBitmap(texW,texH, Bitmap.Config.ARGB_8888); |
132 | 132 |
mCanvas = new Canvas(mBitmap); |
... | ... | |
153 | 153 |
mRefresh = false; |
154 | 154 |
} |
155 | 155 |
|
156 |
mScreen.renderTo(mTexture, mGrid, mEffects, time );
|
|
156 |
mScreen.renderTo(mTexture, mMesh, mEffects, time );
|
|
157 | 157 |
} |
158 | 158 |
|
159 | 159 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Rename Grid to Mesh