Project

General

Profile

« Previous | Next » 

Revision 7451c98a

Added by Leszek Koltunski over 7 years ago

Hide the 'depth' of a DistortedTexture inside the library, so users do not get exposed to this weirdness.

View differences:

src/main/java/org/distorted/examples/differenteffects/DifferentEffectsRenderer.java
166 166
     bmpWidth  = bitmap.getWidth();
167 167

  
168 168
     mGrid     = new GridFlat(30,30*bmpHeight/bmpWidth);
169
     mTexture  = new DistortedTexture(bmpWidth, bmpHeight, 1);
169
     mTexture  = new DistortedTexture(bmpWidth,bmpHeight);
170 170

  
171 171
     mTexture.setTexture(bitmap);
172 172

  

Also available in: Unified diff