Revision 698ad0a8
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/movingeffects/MovingEffectsRenderer.java | ||
---|---|---|
65 | 65 |
mPaint.setStyle(Style.FILL); |
66 | 66 |
|
67 | 67 |
mView = v; |
68 |
mEffects= new DistortedEffects(1);
|
|
68 |
mEffects= new DistortedEffects(); |
|
69 | 69 |
mScreen = new DistortedScreen(); |
70 | 70 |
mRefresh= true; |
71 | 71 |
} |
... | ... | |
141 | 141 |
mBitmap = Bitmap.createBitmap(texW,texH, Bitmap.Config.ARGB_8888); |
142 | 142 |
mCanvas = new Canvas(mBitmap); |
143 | 143 |
|
144 |
mEffects.setStretch(texW,texH,0); |
|
145 |
|
|
146 | 144 |
if( mMesh!=null ) mMesh.markForDeletion(); |
147 | 145 |
mMesh = new MeshRectangles(80,80*texH/texW); |
146 |
mMesh.setStretch(texW,texH,0); |
|
148 | 147 |
|
149 | 148 |
mScreen.detachAll(); |
150 | 149 |
mScreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
Move the Effects.setStretch to Meshbase.setStretch