Revision b01acdaf
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/plainmonalisa/RenderThread.java | ||
---|---|---|
33 | 33 |
import org.distorted.library.Distorted; |
34 | 34 |
import org.distorted.library.DistortedEffects; |
35 | 35 |
import org.distorted.library.DistortedFramebuffer; |
36 |
import org.distorted.library.GridFlat;
|
|
36 |
import org.distorted.library.MeshFlat;
|
|
37 | 37 |
import org.distorted.library.DistortedTexture; |
38 | 38 |
import org.distorted.library.EffectTypes; |
39 | 39 |
import org.distorted.library.type.Dynamic3D; |
... | ... | |
65 | 65 |
private DistortedTexture mTexture; |
66 | 66 |
private DistortedEffects mEffects; |
67 | 67 |
private DistortedFramebuffer mScreen; |
68 |
private GridFlat mGrid;
|
|
68 |
private MeshFlat mMesh;
|
|
69 | 69 |
private int bmpHeight, bmpWidth; |
70 | 70 |
private SurfaceView mView; |
71 | 71 |
|
... | ... | |
214 | 214 |
mTexture = new DistortedTexture(bmpWidth,bmpHeight); |
215 | 215 |
mTexture.setTexture(bmp); |
216 | 216 |
|
217 |
mGrid= new GridFlat(9,9*bmpHeight/bmpWidth); // more-or-less square Grid with 9 columns.
|
|
217 |
mMesh = new MeshFlat(9,9*bmpHeight/bmpWidth); // more-or-less square Grid with 9 columns.
|
|
218 | 218 |
|
219 | 219 |
try |
220 | 220 |
{ |
... | ... | |
267 | 267 |
eglCore.makeCurrent(eglSurface); |
268 | 268 |
|
269 | 269 |
GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); |
270 |
mScreen.renderTo(mTexture, mGrid, mEffects, System.currentTimeMillis() );
|
|
270 |
mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() );
|
|
271 | 271 |
|
272 | 272 |
eglCore.swapBuffers(eglSurface); |
273 | 273 |
} |
Also available in: Unified diff
Rename Grid to Mesh