Revision 8744aa41
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import org.distorted.library.DistortedEffects; |
31 | 31 |
import org.distorted.library.DistortedFramebuffer; |
32 |
import org.distorted.library.DistortedNode; |
|
32 | 33 |
import org.distorted.library.DistortedScreen; |
33 |
import org.distorted.library.DistortedTree; |
|
34 | 34 |
import org.distorted.library.Distorted; |
35 | 35 |
import org.distorted.library.MeshCubes; |
36 | 36 |
import org.distorted.library.MeshFlat; |
... | ... | |
53 | 53 |
private GLSurfaceView mView; |
54 | 54 |
private DistortedEffects mEffects; |
55 | 55 |
private DistortedScreen mScreen; |
56 |
private DistortedTree mRoot;
|
|
56 |
private DistortedNode mRoot;
|
|
57 | 57 |
private int lisaHeight, lisaWidth; |
58 | 58 |
|
59 | 59 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
149 | 149 |
|
150 | 150 |
mEffects.abortAllEffects(); |
151 | 151 |
|
152 |
mRoot = new DistortedTree(lisa, mEffects,new MeshFlat(1,1));
|
|
152 |
mRoot = new DistortedNode(lisa, mEffects,new MeshFlat(1,1));
|
|
153 | 153 |
mRoot.attach(grid,gridEffects,new MeshCubes(10,10,false)); |
154 | 154 |
|
155 | 155 |
float factor = lisaWidth/(2.0f*gridWidth); |
Also available in: Unified diff
Preparation for change of the render API.