Project

General

Profile

« Previous | Next » 

Revision 4d5b37fe

Added by Leszek Koltunski over 7 years ago

Unify Effects3D and Matrix3D (still incomplete!)

View differences:

src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java
77 77
  private EffectNames[] mEffectNames;
78 78

  
79 79
  private static boolean mSupportsRegion;
80
  private static boolean mTypeVertex;
80
  private static boolean mSupportsCenter;
81 81

  
82 82
///////////////////////////////////////////////////////////////////////////////////////////////////
83 83

  
......
235 235

  
236 236
///////////////////////////////////////////////////////////////////////////////////////////////////
237 237

  
238
  public static void setTypeVertex(boolean type)
238
  public static void setSupportsCenter(boolean supports)
239 239
    {
240
    mTypeVertex = type;
240
    mSupportsCenter = supports;
241 241
    }
242 242

  
243 243
///////////////////////////////////////////////////////////////////////////////////////////////////
244 244

  
245
  public static boolean isTypeVertex()
245
  public static boolean supportsCenter()
246 246
    {
247
    return mTypeVertex;
247
    return mSupportsCenter;
248 248
    }
249 249

  
250 250
///////////////////////////////////////////////////////////////////////////////////////////////////
......
461 461
    mRegionR = getWidth()/2;
462 462

  
463 463
    mSupportsRegion = true;
464
    mTypeVertex     =false;
464
    mSupportsCenter =false;
465 465
    }
466 466

  
467 467
///////////////////////////////////////////////////////////////////////////////////////////////////
......
500 500
    View view = eff.createView();
501 501
    layout.addView(view);
502 502

  
503
    if( mTypeVertex )
503
    if( mSupportsCenter )
504 504
      {
505 505
      View center = eff.createCenter();
506 506
      layout.addView(center);

Also available in: Unified diff