Revision 77a500b3
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/TableOfContents.java | ||
---|---|---|
68 | 68 |
import org.distorted.examples.stencil.StencilActivity; |
69 | 69 |
import org.distorted.examples.glow.GlowActivity; |
70 | 70 |
import org.distorted.examples.movingglow.MovingGlowActivity; |
71 |
import org.distorted.examples.inflate.InflateActivity; |
|
71 | 72 |
|
72 | 73 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
73 | 74 |
|
... | ... | |
396 | 397 |
activityMapping.put(i++, MovingGlowActivity.class); |
397 | 398 |
} |
398 | 399 |
|
400 |
{ |
|
401 |
final Map<String, Object> item = new HashMap<>(); |
|
402 |
item.put(ITEM_IMAGE, R.drawable.icon_example_wip); |
|
403 |
item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_inflate)); |
|
404 |
item.put(ITEM_SUBTITLE, getText(R.string.example_inflate_subtitle)); |
|
405 |
data.add(item); |
|
406 |
activityMapping.put(i++, InflateActivity.class); |
|
407 |
} |
|
408 |
|
|
399 | 409 |
final SimpleAdapter dataAdapter = new SimpleAdapter(this, data, R.layout.toc_item, new String[] {ITEM_IMAGE, ITEM_TITLE, ITEM_SUBTITLE}, new int[] {R.id.Image, R.id.Title, R.id.SubTitle}); |
400 | 410 |
setListAdapter(dataAdapter); |
401 | 411 |
|
Also available in: Unified diff
Progress with Inflate (building block of postprocessing effects: the proper way of marking a halo around a Mesh)
'Inflate' app testing the machanism. MeshFlat appears to be working, now we only need to fill up the per-vertex Inflate vector in the MeshCubes.