Project

General

Profile

« Previous | Next » 

Revision 698ad0a8

Added by Leszek Koltunski about 4 years ago

Move the Effects.setStretch to Meshbase.setStretch

View differences:

src/main/java/org/distorted/examples/listener/ListenerRenderer.java
163 163
     if( mTexture==null ) mTexture = new DistortedTexture();
164 164
     mTexture.setTexture(bitmap);
165 165

  
166
     if( mMesh==null ) mMesh = new MeshRectangles(50,50*bmpHeight/bmpWidth);
166
     if( mMesh==null )
167
       {
168
       mMesh = new MeshRectangles(50,50*bmpHeight/bmpWidth);
169
       mMesh.setStretch(bmpWidth,bmpHeight,0);
170
       }
167 171

  
168 172
     if( mEffects==null )
169 173
       {
170
       mEffects = new DistortedEffects(bmpWidth,bmpHeight,0);
174
       mEffects = new DistortedEffects();
171 175
       mEffects.apply(new MatrixEffectScale(mScale));
172 176
       mEffects.apply(new MatrixEffectMove(mMove));
173 177
       }

Also available in: Unified diff