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/listener/ListenerRenderer.java
158 158
      bmpWidth  = bitmap.getWidth();
159 159

  
160 160
      mGrid    = new GridFlat(50,50*bmpHeight/bmpWidth);
161
      mTexture = new DistortedTexture(bmpWidth,bmpHeight,0);
161
      mTexture = new DistortedTexture(bmpWidth,bmpHeight);
162 162
      mTexture.setTexture(bitmap);
163 163

  
164 164
      for(int i=0; i<NUM_BUBBLES; i++) randomizeNewBubble();

Also available in: Unified diff