Revision 9df01f21
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/predeform/PredeformActivity2.java | ||
---|---|---|
92 | 92 |
|
93 | 93 |
Bundle b = getIntent().getExtras(); |
94 | 94 |
|
95 |
String str = b.getString("string"); |
|
96 | 95 |
int objectType = b.getInt("type"); |
97 | 96 |
int bitmapID = b.getInt("bitmap"); |
98 | 97 |
mNumCols = b.getInt("cols"); |
99 | 98 |
mNumRows = b.getInt("rows"); |
100 | 99 |
mNumSlic = b.getInt("slices"); |
101 | 100 |
|
101 |
StringBuilder strBuilder = new StringBuilder(); |
|
102 |
for(int i=0; i<mNumCols*mNumRows; i++) strBuilder.append('1'); |
|
103 |
|
|
102 | 104 |
int maxsize = mNumCols > mNumRows ? (Math.max(mNumCols, mNumSlic)) : (Math.max(mNumRows, mNumSlic)); |
103 | 105 |
createBitmap(maxsize,bitmapID); |
104 |
mMesh = PredeformMeshList.createMesh(objectType, mNumCols, mNumRows, mNumSlic, bitmapID, str); |
|
106 |
mMesh = PredeformMeshList.createMesh(objectType, mNumCols, mNumRows, mNumSlic, bitmapID, strBuilder.toString() );
|
|
105 | 107 |
|
106 | 108 |
mTexture = new DistortedTexture(); |
107 | 109 |
|
Also available in: Unified diff
Progress with Predeform: UI for the list of Vertex effects to preapply.