Revision 10b7e588
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java | ||
---|---|---|
28 | 28 |
|
29 | 29 |
import org.distorted.examples.R; |
30 | 30 |
|
31 |
import org.distorted.library.DistortedBitmapGrid;
|
|
31 |
import org.distorted.library.GridFlat;
|
|
32 | 32 |
import org.distorted.library.EffectNames; |
33 | 33 |
import org.distorted.library.type.Dynamic1D; |
34 | 34 |
import org.distorted.library.type.Dynamic3D; |
35 |
import org.distorted.library.DistortedNode;
|
|
35 |
import org.distorted.library.DistortedObjectTree;
|
|
36 | 36 |
import org.distorted.library.type.Static1D; |
37 | 37 |
import org.distorted.library.type.Static3D; |
38 | 38 |
import org.distorted.library.type.Static4D; |
... | ... | |
106 | 106 |
private long gffaID, logoID, crawlID; |
107 | 107 |
|
108 | 108 |
private Random mRnd = new Random(0); |
109 |
private DistortedNode mRoot, mBackground;
|
|
110 |
private DistortedBitmapGrid mQuad;
|
|
109 |
private DistortedObjectTree mRoot, mBackground;
|
|
110 |
private GridFlat mQuad;
|
|
111 | 111 |
|
112 | 112 |
|
113 | 113 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
116 | 116 |
{ |
117 | 117 |
mView = v; |
118 | 118 |
|
119 |
mQuad = new DistortedBitmapGrid(1,1);
|
|
119 |
mQuad = new GridFlat(1,1);
|
|
120 | 120 |
Distorted.setProjection(60.0f, 0.0f, 0.0f); |
121 | 121 |
} |
122 | 122 |
|
... | ... | |
159 | 159 |
private void setupScreen(int w, int h) |
160 | 160 |
{ |
161 | 161 |
mScreen = new DistortedObject(w,h,1); |
162 |
mRoot = new DistortedNode(mScreen,mQuad);
|
|
162 |
mRoot = new DistortedObjectTree(mScreen,mQuad);
|
|
163 | 163 |
|
164 | 164 |
mCrawlBackground = new DistortedObject(w,(int)(Math.sqrt(3.0)*h),1); |
165 | 165 |
|
Also available in: Unified diff
Rename various classes; fix a bug in Around the World.