Project

General

Profile

« Previous | Next » 

Revision e8205412

Added by Leszek Koltunski over 2 years ago

Simplify TwistyObject's API.

View differences:

src/main/java/org/distorted/tutorials/TutorialPreRender.java
96 96

  
97 97
    if( mNewObject!=null )
98 98
      {
99
      mNewObject.createTexture();
100 99
      mView.setMovement(mNewObject.getMovement());
101 100
      mIsSolved = mNewObject.isSolved();
102 101
      }
......
272 271

  
273 272
  void setScreenSize(int width)
274 273
    {
275
    if( mNewObject!=null )
276
      {
277
      mNewObject.createTexture();
278
      mNewObject.recomputeScaleFactor(width);
279
      }
280

  
281
    mScreenWidth  = width;
274
    if( mNewObject!=null ) mNewObject.recomputeScaleFactor(width);
275
    mScreenWidth = width;
282 276
    }
283 277

  
284 278
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff