Revision 698ad0a8
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/dynamic/DynamicRenderer.java | ||
---|---|---|
62 | 62 |
mView = v; |
63 | 63 |
mMesh = new MeshRectangles(1,1); |
64 | 64 |
mScreen = new DistortedScreen(); |
65 |
mEffects = new DistortedEffects(); |
|
65 | 66 |
} |
66 | 67 |
|
67 | 68 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
90 | 91 |
|
91 | 92 |
if( mTexture!=null ) mTexture.markForDeletion(); |
92 | 93 |
mTexture= new DistortedTexture(); |
93 |
mEffects = new DistortedEffects(texW, texH, 0);
|
|
94 |
mMesh.setStretch(texW,texH,0);
|
|
94 | 95 |
mBitmap = Bitmap.createBitmap(texW,texH, Bitmap.Config.ARGB_8888); |
95 | 96 |
mCanvas = new Canvas(mBitmap); |
96 | 97 |
|
Also available in: Unified diff
Move the Effects.setStretch to Meshbase.setStretch