Revision 7589635e
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/interpolator/InterpolatorRenderer.java | ||
---|---|---|
32 | 32 |
import org.distorted.library.DistortedBitmap; |
33 | 33 |
import org.distorted.library.Distorted; |
34 | 34 |
import org.distorted.library.EffectTypes; |
35 |
import org.distorted.library.type.Static3D; |
|
35 | 36 |
|
36 | 37 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
37 | 38 |
|
... | ... | |
86 | 87 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
87 | 88 |
{ |
88 | 89 |
mBackground.abortEffects(EffectTypes.MATRIX); |
89 |
mBackground.scale((float)width/texWidth,(float)height/texHeight,1);
|
|
90 |
mBackground.scale( new Static3D((float)width/texWidth,(float)height/texHeight,1) );
|
|
90 | 91 |
Distorted.onSurfaceChanged(width, height); |
91 | 92 |
InterpolatorSurfaceView.setScreenSize(width,height); |
92 | 93 |
} |
Also available in: Unified diff
Major push towards simplifying DistortedObject's public API.
All MATRIX effects are using the new API - the 'DataND' marker interfaces.