Revision d04a4886
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/wind/WindEffectsManager.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
23 | 23 |
|
24 |
import org.distorted.library.DistortedEffectQueues;
|
|
24 |
import org.distorted.library.DistortedEffects; |
|
25 | 25 |
import org.distorted.library.DistortedTexture; |
26 | 26 |
import org.distorted.library.type.Dynamic; |
27 | 27 |
import org.distorted.library.type.Dynamic3D; |
... | ... | |
90 | 90 |
|
91 | 91 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
92 | 92 |
|
93 |
synchronized void apply(DistortedEffectQueues queues, int wind)
|
|
93 |
synchronized void apply(DistortedEffects effects, int wind)
|
|
94 | 94 |
{ |
95 | 95 |
Static3D midLeft = new Static3D(0,mHeight/2,0); |
96 | 96 |
Static3D midRight = new Static3D(mWidth,mHeight/2,0); |
... | ... | |
98 | 98 |
|
99 | 99 |
setWind(wind); |
100 | 100 |
|
101 |
queues.shear(shearDynamic,midLeft);
|
|
102 |
queues.scale(scaleDynamic);
|
|
103 |
queues.deform(deformForce,midRight);
|
|
104 |
queues.wave(windDynamic1, midRight, windRegion);
|
|
105 |
queues.wave(windDynamic2, midRight, windRegion);
|
|
106 |
queues.wave(windDynamic3, midRight, windRegion);
|
|
101 |
effects.shear(shearDynamic,midLeft);
|
|
102 |
effects.scale(scaleDynamic);
|
|
103 |
effects.deform(deformForce,midRight);
|
|
104 |
effects.wave(windDynamic1, midRight, windRegion);
|
|
105 |
effects.wave(windDynamic2, midRight, windRegion);
|
|
106 |
effects.wave(windDynamic3, midRight, windRegion);
|
|
107 | 107 |
} |
108 | 108 |
|
109 | 109 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Change of names.