Revision 10b7e588
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
import org.distorted.examples.R; |
29 | 29 |
|
30 |
import org.distorted.library.DistortedNode;
|
|
30 |
import org.distorted.library.DistortedObjectTree;
|
|
31 | 31 |
import org.distorted.library.Distorted; |
32 |
import org.distorted.library.DistortedBitmapGrid;
|
|
32 |
import org.distorted.library.GridFlat;
|
|
33 | 33 |
import org.distorted.library.DistortedObject; |
34 | 34 |
import org.distorted.library.EffectTypes; |
35 | 35 |
import org.distorted.library.type.Dynamic1D; |
... | ... | |
49 | 49 |
private DistortedObject mLisa; |
50 | 50 |
private int lisaHeight, lisaWidth; |
51 | 51 |
|
52 |
private DistortedNode mRoot;
|
|
52 |
private DistortedObjectTree mRoot;
|
|
53 | 53 |
|
54 | 54 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
55 | 55 |
|
... | ... | |
126 | 126 |
DistortedObject text = new DistortedObject(bitmap2.getWidth(),bitmap2.getHeight(),1); |
127 | 127 |
text.setTexture(bitmap2); |
128 | 128 |
|
129 |
mRoot = new DistortedNode(mLisa,new DistortedBitmapGrid(1,1));
|
|
130 |
mRoot.attach(text,new DistortedBitmapGrid(20,5));
|
|
129 |
mRoot = new DistortedObjectTree(mLisa,new GridFlat(1,1));
|
|
130 |
mRoot.attach(text,new GridFlat(20,5));
|
|
131 | 131 |
|
132 | 132 |
int textWidth = text.getWidth(); |
133 | 133 |
int textHeight = text.getHeight(); |
Also available in: Unified diff
Rename various classes; fix a bug in Around the World.