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/cubes/CubesActivity.java
22 22
import org.distorted.library.Distorted;
23 23
import org.distorted.examples.R;
24 24
import org.distorted.library.DistortedObject;
25
import org.distorted.library.DistortedObjectGrid;
26
import org.distorted.library.DistortedCubesGrid;
25
import org.distorted.library.GridObject;
26
import org.distorted.library.GridCubes;
27 27

  
28 28
import android.app.Activity;
29 29
import android.opengl.GLSurfaceView;
......
49 49
    private LinearLayout mLay;
50 50
    private boolean[] mShape;
51 51
    private DistortedObject mObject;
52
    private DistortedObjectGrid mGrid;
52
    private GridObject mGrid;
53 53

  
54 54
///////////////////////////////////////////////////////////////////////////////////////////////////
55 55
    
......
199 199
      for(int i=0; i<mNumRows*mNumCols; i++)
200 200
        str += mShape[i] ? "1" : "0";
201 201

  
202
      mGrid = new DistortedCubesGrid(mNumCols, str, false);
202
      mGrid = new GridCubes(mNumCols, str, false);
203 203
      mObject = new DistortedObject(mNumCols,mNumRows,1);
204 204

  
205 205
      setContentView(R.layout.cubeslayout);
......
214 214

  
215 215
///////////////////////////////////////////////////////////////////////////////////////////////////
216 216

  
217
    public DistortedObjectGrid getGrid()
217
    public GridObject getGrid()
218 218
      {
219 219
      return mGrid;
220 220
      }

Also available in: Unified diff