Revision 10b7e588
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/projection/ProjectionRenderer.java | ||
---|---|---|
23 | 23 |
import javax.microedition.khronos.opengles.GL10; |
24 | 24 |
|
25 | 25 |
import org.distorted.library.Distorted; |
26 |
import org.distorted.library.DistortedBitmapGrid;
|
|
26 |
import org.distorted.library.GridFlat;
|
|
27 | 27 |
import org.distorted.library.DistortedObject; |
28 | 28 |
import org.distorted.library.type.Static3D; |
29 | 29 |
import org.distorted.library.type.Static4D; |
... | ... | |
41 | 41 |
{ |
42 | 42 |
private GLSurfaceView mView; |
43 | 43 |
private DistortedObject mProjection; |
44 |
private DistortedBitmapGrid mGrid;
|
|
44 |
private GridFlat mGrid;
|
|
45 | 45 |
|
46 | 46 |
private static float mF, mX, mY; |
47 | 47 |
private static int mWidth, mHeight; |
... | ... | |
121 | 121 |
{ |
122 | 122 |
Paint paint = new Paint(); |
123 | 123 |
mProjection = new DistortedObject(w,h,1); |
124 |
mGrid = new DistortedBitmapGrid(50,50*h/w);
|
|
124 |
mGrid = new GridFlat(50,50*h/w);
|
|
125 | 125 |
Bitmap bmp = Bitmap.createBitmap(w,h, Bitmap.Config.ARGB_8888); |
126 | 126 |
Canvas bmpCanvas = new Canvas(bmp); |
127 | 127 |
|
Also available in: Unified diff
Rename various classes; fix a bug in Around the World.