Project

General

Profile

« Previous | Next » 

Revision 4c42bc15

Added by Leszek Koltunski about 4 years ago

Some cleanups in MonaLisa, Bean & Sink.

View differences:

src/main/java/org/distorted/examples/bean/BeanRenderer.java
93 93
      mEffects.apply( new VertexEffectDistort(dynRight, pointRight, regionRight));
94 94
      mEffects.apply( new MatrixEffectScale(mScale) );
95 95

  
96
      mScreen = new DistortedScreen();
96
      mTexture = new DistortedTexture();
97
      mScreen  = new DistortedScreen();
97 98
      }
98 99

  
99 100
///////////////////////////////////////////////////////////////////////////////////////////////////
......
134 135
       }
135 136
      
136 137
     mBmpRatio = (float)bitmap.getHeight()/bitmap.getWidth();
137

  
138
     if( mTexture==null ) mTexture = new DistortedTexture();
139 138
     mTexture.setTexture(bitmap);
140 139

  
141 140
     // we need a denser Mesh lattice this time for the Distorts to look good.

Also available in: Unified diff