Project

General

Profile

« Previous | Next » 

Revision 10b7e588

Added by Leszek Koltunski over 7 years ago

Rename various classes; fix a bug in Around the World.

View differences:

src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java
26 26

  
27 27
import org.distorted.examples.R;
28 28
import org.distorted.library.Distorted;
29
import org.distorted.library.DistortedBitmapGrid;
29
import org.distorted.library.GridFlat;
30 30
import org.distorted.library.DistortedObject;
31 31
import org.distorted.library.EffectTypes;
32 32
import org.distorted.library.type.Static3D;
......
43 43
{
44 44
   private GLSurfaceView mView;
45 45
   private DistortedObject mObject;
46
   private DistortedBitmapGrid mGrid;
46
   private GridFlat mGrid;
47 47
   private AroundTheWorldEffectsManager mEffects;
48 48
   private int mObjWidth, mObjHeight;
49 49

  
......
119 119
        catch(IOException e) { }
120 120
        }
121 121

  
122

  
123
      mObjWidth = mObject.getWidth();
124
      mObjHeight= mObject.getHeight();
122
      mObjWidth = bitmap.getWidth();
123
      mObjHeight= bitmap.getHeight();
125 124

  
126 125
      mObject = new DistortedObject(mObjWidth,mObjHeight,1);
127 126
      mObject.setTexture(bitmap);
128 127
      mEffects.apply(mObject);
129 128

  
130
      mGrid = new DistortedBitmapGrid(30,30*mObjHeight/mObjWidth);
129
      mGrid = new GridFlat(30,30*mObjHeight/mObjWidth);
131 130

  
132 131
      try
133 132
        {

Also available in: Unified diff