Revision 698ad0a8
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/girl/GirlRenderer.java | ||
---|---|---|
115 | 115 |
diHips.add(dMiddle); |
116 | 116 |
diHips.add(dBegin); |
117 | 117 |
|
118 |
mEffects = new DistortedEffects(1);
|
|
118 |
mEffects = new DistortedEffects(); |
|
119 | 119 |
|
120 | 120 |
mEffects.apply( new VertexEffectSink ( diSink, pLeft , sinkRegion) ); |
121 | 121 |
mEffects.apply( new VertexEffectSink ( diSink, pRight, sinkRegion) ); |
... | ... | |
210 | 210 |
bmpHeight = bitmap.getHeight(); |
211 | 211 |
bmpWidth = bitmap.getWidth(); |
212 | 212 |
|
213 |
mEffects.setStretch(bmpWidth,bmpHeight,0); |
|
214 |
|
|
215 | 213 |
if( mTexture==null ) mTexture = new DistortedTexture(); |
216 | 214 |
mTexture.setTexture(bitmap); |
217 | 215 |
|
218 |
if( mMesh==null ) mMesh = new MeshRectangles(30,30*bmpHeight/bmpWidth); |
|
216 |
if( mMesh==null ) |
|
217 |
{ |
|
218 |
mMesh = new MeshRectangles(30,30*bmpHeight/bmpWidth); |
|
219 |
mMesh.setStretch(bmpWidth,bmpHeight,0); |
|
220 |
} |
|
219 | 221 |
|
220 | 222 |
mScreen.detachAll(); |
221 | 223 |
mScreen.attach(mTexture,mEffects,mMesh); |
Also available in: Unified diff
Move the Effects.setStretch to Meshbase.setStretch