Revision 10b7e588
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/sink/SinkRenderer.java | ||
---|---|---|
28 | 28 |
import org.distorted.examples.R; |
29 | 29 |
|
30 | 30 |
import org.distorted.library.Distorted; |
31 |
import org.distorted.library.DistortedBitmapGrid;
|
|
31 |
import org.distorted.library.GridFlat;
|
|
32 | 32 |
import org.distorted.library.DistortedObject; |
33 | 33 |
import org.distorted.library.EffectTypes; |
34 | 34 |
import org.distorted.library.type.Dynamic1D; |
... | ... | |
47 | 47 |
{ |
48 | 48 |
private GLSurfaceView mView; |
49 | 49 |
private DistortedObject mObject; |
50 |
private DistortedBitmapGrid mGrid;
|
|
50 |
private GridFlat mGrid;
|
|
51 | 51 |
private Static3D pLeft, pRight; |
52 | 52 |
private Static4D Region; |
53 | 53 |
private int bmpHeight, bmpWidth; |
... | ... | |
126 | 126 |
dSink.add(new Static1D( 1)); |
127 | 127 |
dSink.add(new Static1D(10)); |
128 | 128 |
|
129 |
mGrid = new DistortedBitmapGrid(30,30*bmpHeight/bmpWidth);
|
|
129 |
mGrid = new GridFlat(30,30*bmpHeight/bmpWidth);
|
|
130 | 130 |
mObject = new DistortedObject(bmpWidth,bmpHeight,1); |
131 | 131 |
mObject.setTexture(bitmap); |
132 | 132 |
|
Also available in: Unified diff
Rename various classes; fix a bug in Around the World.