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/projection/ProjectionRenderer.java
99 99
      mHeight= height;
100 100

  
101 101
      Paint paint = new Paint();
102
      mTexture    = new DistortedTexture(width,height,0);
102
      mTexture    = new DistortedTexture(width,height);
103 103
      mGrid       = new GridFlat(50,50*height/width);
104 104
      Bitmap bmp  = Bitmap.createBitmap(width,height, Bitmap.Config.ARGB_8888);
105 105
      Canvas bmpCanvas = new Canvas(bmp);

Also available in: Unified diff