Revision b01acdaf
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java | ||
---|---|---|
31 | 31 |
import org.distorted.library.DistortedFramebuffer; |
32 | 32 |
import org.distorted.library.DistortedTree; |
33 | 33 |
import org.distorted.library.EffectTypes; |
34 |
import org.distorted.library.MeshFlat; |
|
34 | 35 |
import org.distorted.library.type.Dynamic1D; |
35 | 36 |
import org.distorted.library.type.Static3D; |
36 | 37 |
import org.distorted.library.type.Static1D; |
37 | 38 |
import org.distorted.library.Distorted; |
38 |
import org.distorted.library.GridFlat; |
|
39 | 39 |
import org.distorted.library.DistortedTexture; |
40 | 40 |
|
41 | 41 |
import android.graphics.Bitmap; |
... | ... | |
64 | 64 |
mView = v; |
65 | 65 |
|
66 | 66 |
mLeaf = new DistortedTexture(LEAF_SIZE,LEAF_SIZE); |
67 |
GridFlat grid = new GridFlat(1,1);
|
|
67 |
MeshFlat mesh = new MeshFlat(1,1);
|
|
68 | 68 |
DistortedEffects effects = new DistortedEffects(); |
69 | 69 |
|
70 | 70 |
mScreenW = 9*LEAF_SIZE; |
71 | 71 |
mScreenH = 9*LEAF_SIZE; |
72 |
mRoot = new DistortedTree(new DistortedTexture(mScreenW,mScreenH), effects, grid);
|
|
72 |
mRoot = new DistortedTree(new DistortedTexture(mScreenW,mScreenH), effects, mesh);
|
|
73 | 73 |
|
74 | 74 |
Dynamic1D rot = new Dynamic1D(5000,0.0f); |
75 | 75 |
rot.setMode(Dynamic1D.MODE_JUMP); |
... | ... | |
90 | 90 |
if( i<=1 ) |
91 | 91 |
{ |
92 | 92 |
effects = new DistortedEffects(); |
93 |
mCircleNode[i] = new DistortedTree(new DistortedTexture(3*LEAF_SIZE,3*LEAF_SIZE), effects, grid);
|
|
93 |
mCircleNode[i] = new DistortedTree(new DistortedTexture(3*LEAF_SIZE,3*LEAF_SIZE), effects, mesh);
|
|
94 | 94 |
|
95 | 95 |
for(int j=0; j<NUM_LEAVES-i; j++) |
96 | 96 |
{ |
97 | 97 |
effects = new DistortedEffects(); |
98 |
mCircleNode[i].attach(mLeaf, effects, grid);
|
|
98 |
mCircleNode[i].attach(mLeaf, effects, mesh);
|
|
99 | 99 |
effects.rotate( new Static1D(j*(360/NUM_LEAVES)), axis, center ); |
100 | 100 |
effects.move(moveVector); |
101 | 101 |
} |
Also available in: Unified diff
Rename Grid to Mesh