Revision 95593730
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/deform/DeformRenderer.java | ||
---|---|---|
6 | 6 |
|
7 | 7 |
import org.distorted.library.Distorted; |
8 | 8 |
import org.distorted.library.DistortedBitmap; |
9 |
import org.distorted.library.EffectTypes; |
|
9 | 10 |
import org.distorted.library.Interpolator2D; |
10 | 11 |
import org.distorted.library.Float3D; |
11 | 12 |
import org.distorted.library.Float4D; |
... | ... | |
141 | 142 |
} |
142 | 143 |
else |
143 | 144 |
{ |
144 |
stretch.abortAllEffects(Distorted.TYPE_FRAG|Distorted.TYPE_VERT);
|
|
145 |
stretch.abortAllEffects(EffectTypes.FRAGMENT.type|EffectTypes.VERTEX.type);
|
|
145 | 146 |
stretch.abortEffect(shearID); |
146 | 147 |
} |
147 | 148 |
} |
... | ... | |
202 | 203 |
|
203 | 204 |
public void down(int x, int y) |
204 | 205 |
{ |
205 |
stretch.abortAllEffects(Distorted.TYPE_FRAG|Distorted.TYPE_VERT);
|
|
206 |
stretch.abortAllEffects(EffectTypes.FRAGMENT.type|EffectTypes.VERTEX.type);
|
|
206 | 207 |
stretch.abortEffect(shearID); |
207 | 208 |
|
208 | 209 |
int xt = x-scrWidth/4; |
... | ... | |
248 | 249 |
|
249 | 250 |
public void up() |
250 | 251 |
{ |
251 |
stretch.abortAllEffects(Distorted.TYPE_FRAG|Distorted.TYPE_VERT);
|
|
252 |
stretch.abortAllEffects(EffectTypes.FRAGMENT.type|EffectTypes.VERTEX.type);
|
|
252 | 253 |
stretch.abortEffect(shearID); |
253 | 254 |
|
254 | 255 |
float damp = -0.65f; |
Also available in: Unified diff
Introduce ENUM EffectTypes