Revision 7451c98a
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/matrix3d/Matrix3DActivity.java | ||
---|---|---|
71 | 71 |
|
72 | 72 |
mQueues = new DistortedEffectQueues(); |
73 | 73 |
mGrid = new GridCubes(1,1,false); |
74 |
mTexture= new DistortedTexture(100,100,100);
|
|
74 |
mTexture= new DistortedTexture(100,100); |
|
75 | 75 |
|
76 | 76 |
setEffectView(); |
77 | 77 |
} |
... | ... | |
205 | 205 |
|
206 | 206 |
public int getDepth() |
207 | 207 |
{ |
208 |
return mTexture==null ? 0: mTexture.getDepth(); |
|
208 |
return mTexture==null ? 0: mTexture.getDepth(mGrid);
|
|
209 | 209 |
} |
210 | 210 |
|
211 | 211 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Hide the 'depth' of a DistortedTexture inside the library, so users do not get exposed to this weirdness.