Revision 7451c98a
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java | ||
---|---|---|
411 | 411 |
int h = mBitmap.getHeight(); |
412 | 412 |
|
413 | 413 |
mQueues = new DistortedEffectQueues(); |
414 |
mTexture= new DistortedTexture(w,h,0);
|
|
414 |
mTexture= new DistortedTexture(w,h); |
|
415 | 415 |
mGrid = new GridFlat(mNumCols,mNumCols*h/w); |
416 | 416 |
setEffectView(); |
417 | 417 |
} |
... | ... | |
442 | 442 |
str += mShape[i] ? "1" : "0"; |
443 | 443 |
|
444 | 444 |
mQueues = new DistortedEffectQueues(); |
445 |
mTexture= new DistortedTexture(mNumCols,mNumRows,1);
|
|
445 |
mTexture= new DistortedTexture(mNumCols,mNumRows); |
|
446 | 446 |
mGrid = new GridCubes(mNumCols, str, false); |
447 | 447 |
|
448 | 448 |
setEffectView(); |
... | ... | |
496 | 496 |
|
497 | 497 |
public int getDepth() |
498 | 498 |
{ |
499 |
return mTexture==null ? 0: mTexture.getDepth(); |
|
499 |
return mTexture==null ? 0: mTexture.getDepth(mGrid);
|
|
500 | 500 |
} |
501 | 501 |
|
502 | 502 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Hide the 'depth' of a DistortedTexture inside the library, so users do not get exposed to this weirdness.