Project

General

Profile

« Previous | Next » 

Revision dcd024be

Added by Leszek Koltunski over 7 years ago

More fixes for the recent API change.

View differences:

src/main/java/org/distorted/examples/matrix3d/Matrix3DActivity.java
55 55
  private EffectNames[] mEffectNames;
56 56

  
57 57
  private static boolean mSupportsCenter;
58
  private float mCenterX, mCenterY, mCenterZ;
59 58

  
60 59
///////////////////////////////////////////////////////////////////////////////////////////////////
61 60

  
......
69 68
    createEffectNames();
70 69

  
71 70
    mGrid   = new DistortedCubesGrid(1,1,false);
72
    mObject = new DistortedObject(1,1,1);
71
    mObject = new DistortedObject(100,100,100);
73 72

  
74 73
    setEffectView();
75 74
    }
......
123 122

  
124 123
  public void setCenter(float x, float y, float z)
125 124
    {
126
    mCenterX = x;
127
    mCenterY = y;
128
    mCenterZ = z;
125

  
129 126
    }
130 127

  
131 128
///////////////////////////////////////////////////////////////////////////////////////////////////
......
238 235

  
239 236
  private void resetData()
240 237
    {
241
    mCenterX = 0.5f*getWidth();
242
    mCenterY = 0.5f*getHeight();
243

  
244 238
    mSupportsCenter=false;
245 239
    }
246 240

  

Also available in: Unified diff