Revision 95593730
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
import org.distorted.examples.R; |
11 | 11 |
|
12 |
import org.distorted.library.EffectTypes; |
|
12 | 13 |
import org.distorted.library.Interpolator1D; |
13 | 14 |
import org.distorted.library.DistortedNode; |
14 | 15 |
import org.distorted.library.Float3D; |
... | ... | |
105 | 106 |
int bmpWidth = bmp.getWidth(); |
106 | 107 |
int bmpHeight = bmp.getHeight(); |
107 | 108 |
|
108 |
bmp.abortAllEffects(Distorted.TYPE_PRE);
|
|
109 |
bmp.abortAllEffects(EffectTypes.MATRIX.type);
|
|
109 | 110 |
|
110 | 111 |
if( bmpHeight/bmpWidth > height/width ) |
111 | 112 |
{ |
Also available in: Unified diff
Introduce ENUM EffectTypes