Revision 687263cc
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/dynamic/DynamicRenderer.java | ||
---|---|---|
61 | 61 |
|
62 | 62 |
mView = v; |
63 | 63 |
mMesh = new MeshRectangles(1,1); |
64 |
mEffects = new DistortedEffects(); |
|
65 | 64 |
mScreen = new DistortedScreen(); |
66 | 65 |
} |
67 | 66 |
|
... | ... | |
90 | 89 |
DynamicSurfaceView.setHalfWidth(texW/2); |
91 | 90 |
|
92 | 91 |
if( mTexture!=null ) mTexture.markForDeletion(); |
93 |
mTexture= new DistortedTexture(texW,texH); |
|
92 |
mTexture= new DistortedTexture(); |
|
93 |
mEffects = new DistortedEffects(texW, texH, 0); |
|
94 | 94 |
mBitmap = Bitmap.createBitmap(texW,texH, Bitmap.Config.ARGB_8888); |
95 | 95 |
mCanvas = new Canvas(mBitmap); |
96 | 96 |
|
Also available in: Unified diff
Move the 'pre-multiply mesh before applying any effects' thing from [(Xsize of texture, Ysize of texture) x Mesh's zFactor] to Effects.setStretch(sx,sy,sz)