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/plainmonalisa/RenderThread.java
207 207
    bmpHeight = bmp.getHeight();
208 208
    bmpWidth  = bmp.getWidth();
209 209

  
210
    mTexture = new DistortedTexture(bmpWidth,bmpHeight,0);
210
    mTexture = new DistortedTexture(bmpWidth,bmpHeight);
211 211
    mTexture.setTexture(bmp);
212 212

  
213 213
    mGrid= new GridFlat(9,9*bmpHeight/bmpWidth);  // more-or-less square Grid with 9 columns.

Also available in: Unified diff