Revision 7589635e
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/movingeffects/MovingEffectsRenderer.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 |
|
... | ... | |
101 | 102 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
102 | 103 |
{ |
103 | 104 |
mBackground.abortEffects(EffectTypes.MATRIX); |
104 |
mBackground.scale((float)width/texWidth,(float)height/texHeight,1);
|
|
105 |
mBackground.scale( new Static3D((float)width/texWidth,(float)height/texHeight,1) );
|
|
105 | 106 |
|
106 | 107 |
Distorted.onSurfaceChanged(width, height); |
107 | 108 |
MovingEffectsSurfaceView.setScreenSize(width, height); |
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.