Revision 95593730
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/sink/SinkRenderer.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
import org.distorted.library.Distorted; |
13 | 13 |
import org.distorted.library.DistortedBitmap; |
14 |
import org.distorted.library.EffectTypes; |
|
14 | 15 |
import org.distorted.library.Float2D; |
15 | 16 |
import org.distorted.library.Float4D; |
16 | 17 |
|
... | ... | |
54 | 55 |
|
55 | 56 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
56 | 57 |
{ |
57 |
sinkBmp.abortAllEffects(Distorted.TYPE_PRE);
|
|
58 |
sinkBmp.abortAllEffects(EffectTypes.MATRIX.type);
|
|
58 | 59 |
|
59 | 60 |
if( bmpHeight/bmpWidth > height/width ) |
60 | 61 |
{ |
Also available in: Unified diff
Introduce ENUM EffectTypes