Project

General

Profile

« Previous | Next » 

Revision b01acdaf

Added by Leszek Koltunski over 7 years ago

Rename Grid to Mesh

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.DistortedTexture;
25
import org.distorted.library.GridObject;
26
import org.distorted.library.GridCubes;
25
import org.distorted.library.MeshObject;
26
import org.distorted.library.MeshCubes;
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 DistortedTexture mTexture;
52
    private GridObject mGrid;
52
    private MeshObject mMesh;
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 GridCubes(mNumCols, str, false);
202
      mMesh = new MeshCubes(mNumCols, str, false);
203 203
      mTexture = new DistortedTexture(mNumCols,mNumRows);
204 204

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

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

  
217
    public GridObject getGrid()
217
    public MeshObject getGrid()
218 218
      {
219
      return mGrid;
219
      return mMesh;
220 220
      }
221 221
}

Also available in: Unified diff