Revision 10b7e588
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/listener/ListenerRenderer.java | ||
---|---|---|
29 | 29 |
import org.distorted.examples.R; |
30 | 30 |
|
31 | 31 |
import org.distorted.library.Distorted; |
32 |
import org.distorted.library.DistortedBitmapGrid;
|
|
32 |
import org.distorted.library.GridFlat;
|
|
33 | 33 |
import org.distorted.library.DistortedObject; |
34 | 34 |
import org.distorted.library.EffectNames; |
35 | 35 |
import org.distorted.library.EffectTypes; |
... | ... | |
52 | 52 |
|
53 | 53 |
private GLSurfaceView mView; |
54 | 54 |
private DistortedObject mWater; |
55 |
private DistortedBitmapGrid mGrid;
|
|
55 |
private GridFlat mGrid;
|
|
56 | 56 |
private int bmpHeight, bmpWidth; |
57 | 57 |
private Random mRnd; |
58 | 58 |
|
... | ... | |
154 | 154 |
bmpHeight = bitmap.getHeight(); |
155 | 155 |
bmpWidth = bitmap.getWidth(); |
156 | 156 |
|
157 |
mGrid = new DistortedBitmapGrid(50,50*bmpHeight/bmpWidth);
|
|
157 |
mGrid = new GridFlat(50,50*bmpHeight/bmpWidth);
|
|
158 | 158 |
mWater = new DistortedObject(bmpWidth,bmpHeight,1); |
159 | 159 |
mWater.setTexture(bitmap); |
160 | 160 |
mWater.addEventListener(this); |
Also available in: Unified diff
Rename various classes; fix a bug in Around the World.