Project

General

Profile

« Previous | Next » 

Revision 7bf107f7

Added by Leszek Koltunski almost 8 years ago

Some more progress with porting apps to new VERTEX API.

View differences:

src/main/java/org/distorted/examples/differenteffects/DifferentEffectsRenderer.java
161 161
      
162 162
      // setting the bitmap once is enough; others are cloned!
163 163
      bmp[0].setBitmap(bitmap);
164
         
165
      bmp[0].sink(10.0f, RegionEye, pLeft , 2000, 0.0f);
166
      bmp[0].sink(10.0f, RegionEye, pRight, 2000, 0.0f);
164

  
165
      Dynamic1D sink = new Dynamic1D();
166
      sink.setDuration(2000);
167
      sink.setCount(0);
168
      sink.add(new Static1D( 1));
169
      sink.add(new Static1D(10));
170

  
171
      bmp[0].sink(sink, pLeft, RegionEye);
172
      bmp[0].sink(sink, pRight,RegionEye);
167 173
      bmp[1].distort(mDI, pNose1);
168 174

  
169 175
      Dynamic1D macroblockDyn = new Dynamic1D();

Also available in: Unified diff