Revision 698ad0a8
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java | ||
---|---|---|
68 | 68 |
|
69 | 69 |
mView = view; |
70 | 70 |
mManager = new AroundTheWorldEffectsManager(); |
71 |
mEffects = new DistortedEffects(1);
|
|
71 |
mEffects = new DistortedEffects(); |
|
72 | 72 |
mEffects.apply(new MatrixEffectScale(mScale)); |
73 | 73 |
mEffects.apply(new MatrixEffectMove(mMove)); |
74 | 74 |
|
... | ... | |
136 | 136 |
mObjWidth = bitmap.getWidth(); |
137 | 137 |
mObjHeight= bitmap.getHeight(); |
138 | 138 |
|
139 |
mEffects.setStretch(mObjWidth,mObjHeight,0); |
|
140 |
|
|
141 | 139 |
if( mTexture==null ) mTexture = new DistortedTexture(); |
142 | 140 |
mTexture.setTexture(bitmap); |
143 | 141 |
|
144 |
if( mMesh==null ) mMesh = new MeshRectangles(30,30*mObjHeight/mObjWidth); |
|
142 |
if( mMesh==null ) |
|
143 |
{ |
|
144 |
mMesh = new MeshRectangles(30,30*mObjHeight/mObjWidth); |
|
145 |
mMesh.setStretch(mObjWidth,mObjHeight,0); |
|
146 |
} |
|
145 | 147 |
|
146 | 148 |
mScreen.detachAll(); |
147 | 149 |
mScreen.attach(mTexture, mEffects, mMesh); |
Also available in: Unified diff
Move the Effects.setStretch to Meshbase.setStretch