Revision 222ea32f
Added by Leszek Koltunski almost 6 years ago
src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java | ||
---|---|---|
118 | 118 |
bitmapSpinner.setOnItemSelectedListener(this); |
119 | 119 |
|
120 | 120 |
String[] objectBitmap = new String[] { "Texture: Grid", "Texture: Girl", "Texture: Dog", "Texture: Cat", |
121 |
"Texture: Squares", "Texture: Bean", "Texture: Lisa" }; |
|
121 |
"Texture: Squares", "Texture: Bean", "Texture: Lisa", "Texture: World" };
|
|
122 | 122 |
|
123 | 123 |
ArrayAdapter<String> adapterBitmap = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, objectBitmap); |
124 | 124 |
adapterBitmap.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); |
... | ... | |
288 | 288 |
break; |
289 | 289 |
case R.id.objectpicker_spinnerBitmap: switch(pos) |
290 | 290 |
{ |
291 |
case 0: mBitmapID = -1 ; break; |
|
292 |
case 1: mBitmapID = R.raw.face; break; |
|
293 |
case 2: mBitmapID = R.raw.dog ; break; |
|
294 |
case 3: mBitmapID = R.raw.cat ; break; |
|
295 |
case 4: mBitmapID = R.raw.grid; break; |
|
296 |
case 5: mBitmapID = R.raw.bean; break; |
|
291 |
case 0: mBitmapID = -1 ; break;
|
|
292 |
case 1: mBitmapID = R.raw.face ; break;
|
|
293 |
case 2: mBitmapID = R.raw.dog ; break;
|
|
294 |
case 3: mBitmapID = R.raw.cat ; break;
|
|
295 |
case 4: mBitmapID = R.raw.grid ; break;
|
|
296 |
case 5: mBitmapID = R.raw.bean ; break;
|
|
297 | 297 |
case 6: mBitmapID = R.raw.monalisa; break; |
298 |
case 7: mBitmapID = R.raw.world ; break; |
|
298 | 299 |
} |
299 | 300 |
break; |
300 | 301 |
} |
src/main/java/org/distorted/examples/inflate/InflateActivity.java | ||
---|---|---|
118 | 118 |
bitmapSpinner.setOnItemSelectedListener(this); |
119 | 119 |
|
120 | 120 |
String[] objectBitmap = new String[] { "Texture: Grid", "Texture: Girl", "Texture: Dog", "Texture: Cat", |
121 |
"Texture: Squares", "Texture: Bean", "Texture: Lisa" }; |
|
121 |
"Texture: Squares", "Texture: Bean", "Texture: Lisa", "Texture: World" };
|
|
122 | 122 |
|
123 | 123 |
ArrayAdapter<String> adapterBitmap = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, objectBitmap); |
124 | 124 |
adapterBitmap.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); |
... | ... | |
288 | 288 |
break; |
289 | 289 |
case R.id.objectpicker_spinnerBitmap: switch(pos) |
290 | 290 |
{ |
291 |
case 0: mBitmapID = -1 ; break; |
|
292 |
case 1: mBitmapID = R.raw.face; break; |
|
293 |
case 2: mBitmapID = R.raw.dog ; break; |
|
294 |
case 3: mBitmapID = R.raw.cat ; break; |
|
295 |
case 4: mBitmapID = R.raw.grid; break; |
|
296 |
case 5: mBitmapID = R.raw.bean; break; |
|
291 |
case 0: mBitmapID = -1 ; break;
|
|
292 |
case 1: mBitmapID = R.raw.face ; break;
|
|
293 |
case 2: mBitmapID = R.raw.dog ; break;
|
|
294 |
case 3: mBitmapID = R.raw.cat ; break;
|
|
295 |
case 4: mBitmapID = R.raw.grid ; break;
|
|
296 |
case 5: mBitmapID = R.raw.bean ; break;
|
|
297 | 297 |
case 6: mBitmapID = R.raw.monalisa; break; |
298 |
case 7: mBitmapID = R.raw.world ; break; |
|
298 | 299 |
} |
299 | 300 |
break; |
300 | 301 |
} |
Also available in: Unified diff
New texture showing the World (Mercator projection)