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/bean/BeanRenderer.java
147 147
      bmpHeight = bitmap.getHeight();
148 148
      bmpWidth  = bitmap.getWidth();
149 149
      
150
      mTexture = new DistortedTexture(bmpWidth, bmpHeight, 0);
150
      mTexture = new DistortedTexture(bmpWidth,bmpHeight);
151 151
      mTexture.setTexture(bitmap);
152 152
      mGrid = new GridFlat(25,25*bmpHeight/bmpWidth);
153 153

  

Also available in: Unified diff