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/check/CheckRenderer.java
132 132
      bmpHeight = bitmap.getHeight();
133 133
      bmpWidth  = bitmap.getWidth();
134 134

  
135
      mTexture = new DistortedTexture(bmpWidth,bmpHeight,0);
135
      mTexture = new DistortedTexture(bmpWidth,bmpHeight);
136 136
      mTexture.setTexture(bitmap);
137 137
      mGrid = new GridFlat(30,30*bmpHeight/bmpWidth);
138 138

  

Also available in: Unified diff