Revision 95593730
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/listener/ListenerRenderer.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import org.distorted.library.Distorted; |
14 | 14 |
import org.distorted.library.DistortedBitmap; |
15 |
import org.distorted.library.EffectTypes; |
|
15 | 16 |
import org.distorted.library.Float2D; |
16 | 17 |
import org.distorted.library.Float3D; |
17 | 18 |
import org.distorted.library.Float4D; |
... | ... | |
84 | 85 |
|
85 | 86 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
86 | 87 |
{ |
87 |
water.abortAllEffects(Distorted.TYPE_PRE);
|
|
88 |
water.abortAllEffects(EffectTypes.MATRIX.type);
|
|
88 | 89 |
|
89 | 90 |
if( bmpHeight/bmpWidth > height/width ) |
90 | 91 |
{ |
Also available in: Unified diff
Introduce ENUM EffectTypes