Project

General

Profile

« Previous | Next » 

Revision f6d884d5

Added by Leszek Koltunski over 7 years ago

Complete the split DistortedObject -> (DistortedTexture,DistortedEffectQueue)

View differences:

src/main/java/org/distorted/examples/cubes/CubesActivity.java
21 21

  
22 22
import org.distorted.library.Distorted;
23 23
import org.distorted.examples.R;
24
import org.distorted.library.DistortedObject;
24
import org.distorted.library.DistortedTexture;
25 25
import org.distorted.library.GridObject;
26 26
import org.distorted.library.GridCubes;
27 27

  
......
48 48
    private NumberPicker mColsPicker, mRowsPicker;
49 49
    private LinearLayout mLay;
50 50
    private boolean[] mShape;
51
    private DistortedObject mObject;
51
    private DistortedTexture mTexture;
52 52
    private GridObject mGrid;
53 53

  
54 54
///////////////////////////////////////////////////////////////////////////////////////////////////
......
200 200
        str += mShape[i] ? "1" : "0";
201 201

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

  
205 205
      setContentView(R.layout.cubeslayout);
206 206
      }
207 207

  
208 208
///////////////////////////////////////////////////////////////////////////////////////////////////
209 209

  
210
    public DistortedObject getObject()
210
    public DistortedTexture getTexture()
211 211
      {
212
      return mObject;
212
      return mTexture;
213 213
      }
214 214

  
215 215
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff