Project

General

Profile

« Previous | Next » 

Revision 9eeba229

Added by Leszek Koltunski over 7 years ago

Beginnings of support of Magnification.

View differences:

src/main/java/org/distorted/examples/multiblur/MultiblurActivity.java
125 125
      {
126 126
      switch (bar.getId())
127 127
        {
128
        case R.id.multiblurDistanceSeek: MultiblurSurfaceView view1 = (MultiblurSurfaceView) this.findViewById(R.id.multiblurSurfaceView);
129
                                         view1.getRenderer().setDistance(progress);
128
        case R.id.multiblurDistanceSeek: //MultiblurSurfaceView view1 = (MultiblurSurfaceView) this.findViewById(R.id.multiblurSurfaceView);
129
                                         //view1.getRenderer().setDistance(progress);
130

  
131
                                         Distorted.setMagnify( progress<50 ? 0.018f*progress + 0.1f : 0.02f*progress );
132

  
130 133
                                         break;
131 134
        case R.id.multiblurRangeSeek   : MultiblurSurfaceView view2 = (MultiblurSurfaceView) this.findViewById(R.id.multiblurSurfaceView);
132 135
                                         view2.getRenderer().setRange(progress);
136

  
137
view2.getRenderer().setDistance(progress);
138

  
133 139
                                         break;
134 140

  
135 141
        }

Also available in: Unified diff