Revision 61420934
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/generic/GenericActivity2.java | ||
---|---|---|
76 | 76 |
mShowNormal = false; |
77 | 77 |
mUseOIT = false; |
78 | 78 |
|
79 |
int maxsize = numCols > numRows ? (numCols>numSlic ? numCols:numSlic) : (numRows>numSlic ? numRows:numSlic);
|
|
79 |
int maxsize = numCols > numRows ? (Math.max(numCols, numSlic)) : (Math.max(numRows, numSlic));
|
|
80 | 80 |
createBitmap(maxsize, bitmapID); |
81 | 81 |
mMesh = GenericMeshList.createMesh(objectType, numCols, numRows, numSlic, bitmapID, str); |
82 |
mMesh.setStretch(numCols, numRows, numSlic); |
|
82 | 83 |
|
83 | 84 |
mMesh.setShowNormals(mShowNormal); |
84 | 85 |
mTexture= new DistortedTexture(); |
Also available in: Unified diff
Prepare Generic for the stretchless API.