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/catanddog/CatAndDogRenderer.java
110 110
      bmpHeight = bitmap.getHeight();
111 111
      bmpWidth  = bitmap.getWidth();
112 112

  
113
      mTexture = new DistortedTexture(bmpWidth,bmpHeight,0);
113
      mTexture = new DistortedTexture(bmpWidth,bmpHeight);
114 114
      mTexture.setTexture(bitmap);
115 115

  
116 116
      try

Also available in: Unified diff