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/matrix3d/Matrix3DActivity.java
33 33
import org.distorted.examples.R;
34 34
import org.distorted.library.Distorted;
35 35
import org.distorted.library.DistortedEffects;
36
import org.distorted.library.GridObject;
37
import org.distorted.library.GridCubes;
36
import org.distorted.library.MeshCubes;
37
import org.distorted.library.MeshObject;
38 38
import org.distorted.library.DistortedTexture;
39 39
import org.distorted.library.EffectNames;
40 40
import org.distorted.library.EffectTypes;
......
48 48
public class Matrix3DActivity extends Activity implements AdapterView.OnItemSelectedListener
49 49
  {
50 50
  private DistortedTexture mTexture;
51
  private GridObject mGrid;
51
  private MeshObject mMesh;
52 52
  private DistortedEffects mEffects;
53 53

  
54 54
  private ArrayList<Matrix3DEffect> mList;
......
70 70
    createEffectNames();
71 71

  
72 72
    mEffects = new DistortedEffects();
73
    mGrid   = new GridCubes(1,1,false);
73
    mMesh = new MeshCubes(1,1,false);
74 74
    mTexture= new DistortedTexture(100,100);
75 75

  
76 76
    setEffectView();
......
116 116

  
117 117
///////////////////////////////////////////////////////////////////////////////////////////////////
118 118

  
119
  public GridObject getGrid()
119
  public MeshObject getGrid()
120 120
    {
121
    return mGrid;
121
    return mMesh;
122 122
    }
123 123

  
124 124
///////////////////////////////////////////////////////////////////////////////////////////////////
......
191 191

  
192 192
  public int getDepth()
193 193
    {
194
    return mTexture==null ? 0: mTexture.getDepth(mGrid);
194
    return mTexture==null ? 0: mTexture.getDepth(mMesh);
195 195
    }
196 196

  
197 197
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff