Revision 8744aa41
Added by Leszek Koltunski about 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.DistortedFramebuffer;
|
|
31 |
import org.distorted.library.DistortedNode;
|
|
32 | 32 |
import org.distorted.library.DistortedScreen; |
33 | 33 |
import org.distorted.library.MeshFlat; |
34 | 34 |
import org.distorted.library.EffectNames; |
35 | 35 |
import org.distorted.library.type.Dynamic1D; |
36 | 36 |
import org.distorted.library.type.Dynamic3D; |
37 |
import org.distorted.library.DistortedTree; |
|
38 | 37 |
import org.distorted.library.type.Static1D; |
39 | 38 |
import org.distorted.library.type.Static3D; |
40 | 39 |
import org.distorted.library.type.Static4D; |
... | ... | |
107 | 106 |
private DistortedTexture mScreenTexture, mGFFATexture, mLogoTexture, mCrawlTexture, mCrawlBackgroundTexture, mStarTexture; |
108 | 107 |
private DistortedEffects mScreenEffects, mGFFAEffects, mLogoEffects, mCrawlEffects, mCrawlBackgroundEffects; |
109 | 108 |
private DistortedEffects[] mStarEffects; |
110 |
private DistortedTree mRoot, mBackground;
|
|
109 |
private DistortedNode mRoot, mBackground;
|
|
111 | 110 |
private DistortedScreen mScreen; |
112 | 111 |
private MeshFlat mQuad; |
113 | 112 |
|
... | ... | |
200 | 199 |
private void setupScreen(int w, int h) |
201 | 200 |
{ |
202 | 201 |
mScreenTexture = new DistortedTexture(w,h); |
203 |
mRoot = new DistortedTree(mScreenTexture, mScreenEffects,mQuad);
|
|
202 |
mRoot = new DistortedNode(mScreenTexture, mScreenEffects,mQuad);
|
|
204 | 203 |
|
205 | 204 |
mCrawlBackgroundTexture = new DistortedTexture(w,(int)(Math.sqrt(3.0)*h)); |
206 | 205 |
|
Also available in: Unified diff
Preparation for change of the render API.