Project

General

Profile

« Previous | Next » 

Revision 2666a48c

Added by Leszek Koltunski about 5 years ago

1. Change the API of Dynamic: split makeNowRunFor into two separate 'setDuration' and 'resetToBeginning'
2. Major changes to the 'Dynamic' app so that we can check more about the Dynamics.

View differences:

src/main/java/org/distorted/examples/dynamic/DynamicRenderer.java
47 47
   private Bitmap mBitmap;
48 48
   private Paint mPaint;
49 49

  
50
   static int texW, texH;
50
   private static int texW, texH;
51 51
    
52 52
///////////////////////////////////////////////////////////////////////////////////////////////////
53 53

  
......
86 86
     texW = width;
87 87
     texH = height;
88 88

  
89
     DynamicSurfaceView.setHalfHeight(texH/2);
90
     DynamicSurfaceView.setHalfWidth(texW/2);
91

  
89 92
     if( mTexture!=null ) mTexture.markForDeletion();
90 93
     mTexture= new DistortedTexture(texW,texH);
91 94
     mBitmap = Bitmap.createBitmap(texW,texH, Bitmap.Config.ARGB_8888);

Also available in: Unified diff