Revision dcd024be
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java | ||
---|---|---|
128 | 128 |
Spinner typeSpinner = (Spinner)findViewById(R.id.objectpicker_spinnerType); |
129 | 129 |
typeSpinner.setOnItemSelectedListener(this); |
130 | 130 |
|
131 |
String[] objectType = new String[] {"DistortedCubes", "DistortedBitmap"};
|
|
131 |
String[] objectType = new String[] {"CubesGrid", "FlatGrid"};
|
|
132 | 132 |
|
133 | 133 |
ArrayAdapter<String> adapterType = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, objectType); |
134 | 134 |
adapterType.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); |
src/main/java/org/distorted/examples/flag/FlagRenderer.java | ||
---|---|---|
64 | 64 |
mView = v; |
65 | 65 |
|
66 | 66 |
mGrid = new DistortedCubesGrid(50,30,false); |
67 |
mObject = new DistortedObject(50,30,1);
|
|
67 |
mObject = new DistortedObject(500,300,10);
|
|
68 | 68 |
|
69 | 69 |
mObjWidth = mObject.getWidth(); |
70 | 70 |
mObjHeight= mObject.getHeight(); |
src/main/java/org/distorted/examples/matrix3d/Matrix3DActivity.java | ||
---|---|---|
55 | 55 |
private EffectNames[] mEffectNames; |
56 | 56 |
|
57 | 57 |
private static boolean mSupportsCenter; |
58 |
private float mCenterX, mCenterY, mCenterZ; |
|
59 | 58 |
|
60 | 59 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
61 | 60 |
|
... | ... | |
69 | 68 |
createEffectNames(); |
70 | 69 |
|
71 | 70 |
mGrid = new DistortedCubesGrid(1,1,false); |
72 |
mObject = new DistortedObject(1,1,1);
|
|
71 |
mObject = new DistortedObject(100,100,100);
|
|
73 | 72 |
|
74 | 73 |
setEffectView(); |
75 | 74 |
} |
... | ... | |
123 | 122 |
|
124 | 123 |
public void setCenter(float x, float y, float z) |
125 | 124 |
{ |
126 |
mCenterX = x; |
|
127 |
mCenterY = y; |
|
128 |
mCenterZ = z; |
|
125 |
|
|
129 | 126 |
} |
130 | 127 |
|
131 | 128 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
238 | 235 |
|
239 | 236 |
private void resetData() |
240 | 237 |
{ |
241 |
mCenterX = 0.5f*getWidth(); |
|
242 |
mCenterY = 0.5f*getHeight(); |
|
243 |
|
|
244 | 238 |
mSupportsCenter=false; |
245 | 239 |
} |
246 | 240 |
|
Also available in: Unified diff
More fixes for the recent API change.