Revision df80818c
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/movingeffects/MovingEffectsRenderer.java | ||
---|---|---|
143 | 143 |
texW = width; |
144 | 144 |
texH = height; |
145 | 145 |
|
146 |
mScale.set(width,height,width);
|
|
146 |
mScale.set(width,width,width);
|
|
147 | 147 |
|
148 | 148 |
mBitmap = Bitmap.createBitmap(texW,texH, Bitmap.Config.ARGB_8888); |
149 | 149 |
mCanvas = new Canvas(mBitmap); |
150 | 150 |
|
151 | 151 |
if( mMesh!=null ) mMesh.markForDeletion(); |
152 | 152 |
mMesh = new MeshRectangles(80,80*texH/texW); |
153 |
mMesh.setStretch(1.0f, (float)texH/texW, 1.0f); |
|
153 | 154 |
|
154 | 155 |
mScreen.detachAll(); |
155 | 156 |
mScreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
Further corrections.