Revision 10b7e588
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/plainmonalisa/RenderThread.java | ||
---|---|---|
31 | 31 |
import android.view.SurfaceView; |
32 | 32 |
|
33 | 33 |
import org.distorted.library.Distorted; |
34 |
import org.distorted.library.DistortedBitmapGrid;
|
|
34 |
import org.distorted.library.GridFlat;
|
|
35 | 35 |
import org.distorted.library.DistortedObject; |
36 | 36 |
import org.distorted.library.EffectTypes; |
37 | 37 |
import org.distorted.library.type.Dynamic3D; |
... | ... | |
61 | 61 |
private EGLSurface eglSurface; |
62 | 62 |
|
63 | 63 |
private DistortedObject monaLisa; |
64 |
private DistortedBitmapGrid mGrid;
|
|
64 |
private GridFlat mGrid;
|
|
65 | 65 |
private int bmpHeight, bmpWidth; |
66 | 66 |
|
67 | 67 |
private Static3D pLeft, pRight; |
... | ... | |
198 | 198 |
monaLisa.distort(dRight, pRight, rRight); |
199 | 199 |
monaLisa.setTexture(bmp); |
200 | 200 |
|
201 |
mGrid= new DistortedBitmapGrid(9,9*bmpHeight/bmpWidth); // more-or-less square Grid with 9 columns.
|
|
201 |
mGrid= new GridFlat(9,9*bmpHeight/bmpWidth); // more-or-less square Grid with 9 columns.
|
|
202 | 202 |
|
203 | 203 |
try |
204 | 204 |
{ |
Also available in: Unified diff
Rename various classes; fix a bug in Around the World.